Change Event for Scene?

Change Event for Scene?

blastframe
Enthusiast Enthusiast
428 Views
1 Reply
Message 1 of 2

Change Event for Scene?

blastframe
Enthusiast
Enthusiast

Hi,
I have a list that I want to update when objects have been added or deleted from the Maya scene.

 

Is there some kind of global event or perhaps an Outliner event that fires when a change like this happens?

 

I found the scriptJob event "DagObjectCreated" for when an object is added but I can't find the equivalent for when an object is removed.

 

I am working in PyMel. Thank you! Smiley Happy

0 Likes
429 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

scriptJob has an "nodeDeleted" event, but you have to specify the name of the node. So you could add the "nodeDelete" script job inside the script job for "DagObjectCreated". Then it should be called for all dag objects.

0 Likes