Macro to make a clipping plane, seems to quit working.

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
freedman
Veteran
Posts: 3466
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Macro to make a clipping plane, seems to quit working.

Post by freedman »

I'm using this code in a macro (from the python console) to turn the clipping plane on/off. After a few uses it quits working.

Code: Select all

   Gui.ActiveDocument.ActiveView.setCameraOrientation(App.Placement(Gui.editDocument().EditingTransform).Rotation.Q)
No errors, just stops working. The button "clipping plane" still works fine. Do I need to add something to refocus the call?
Thanks
Post Reply