Is Gui document observer possible?

Need help, or want to share a macro? Post here!
DeepSOIC
Posts: 4507
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Is Gui document observer possible?

Postby DeepSOIC » Mon Mar 13, 2017 9:40 pm

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.
DeepSOIC
Posts: 4507
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Is Gui document observer possible?

Postby DeepSOIC » Mon Mar 13, 2017 9:53 pm

Thinking about it a bit more, I think it might be possible to go with selection observer.
wmayer
Site Admin
Posts: 11241
Joined: Thu Feb 19, 2009 10:32 am

Re: Is Gui document observer possible?

Postby wmayer » Mon Mar 13, 2017 11:14 pm

DeepSOIC
Posts: 4507
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Is Gui document observer possible?

Postby DeepSOIC » Mon Mar 13, 2017 11:24 pm

Well... I meant, in python :roll: but thanks anyway