Hi!
I want to track and react to changes to visibilities of certain objects. But I don't see any way to do that, apart from adding a polling timer and check if anything has changed. So I ask, is there a way to add an observer to gui document, like one can add an observer to app document?
I want Part-o-magic's ShapeGroup to react to changes to visibilities of contained objects, and include or exclude an object from results (its own shape) depending on visibility of the objects.
Is Gui document observer possible?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Is Gui document observer possible?
Thinking about it a bit more, I think it might be possible to go with selection observer.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Is Gui document observer possible?
Well... I meant, in python but thanks anyway