Events / callbacks that arent in scriptjobs for NON DAG nodes being created or a window being created

Events / callbacks that arent in scriptjobs for NON DAG nodes being created or a window being created

AronDurkin
Enthusiast Enthusiast
353 Views
1 Reply
Message 1 of 2

Events / callbacks that arent in scriptjobs for NON DAG nodes being created or a window being created

AronDurkin
Enthusiast
Enthusiast

I'm trying to find out if there's some kinda way a can call a script when the Game Exporter window is launched and creates the custom nodes that hold it's data. So when you've created a new, empty scene, nodes of type "gameFbxExporter" don't exist but when you open the Game Exporter, it creates them. I'd like an event when they are created so my custom tools can know they exist now. 

 

You can use DagObjectCreated  in scriotjobs but these are Non DAG so I'd either need to know when a non dag object is created, or when a plugin node type is created, or when the window "gameExporterWindow", or any new UI and I can check against it. 

 

All i can think right is to check when time changes, I can't think of any other way to find out when these nodes have been created in the scene.

 

Thanks

0 Likes
Accepted solutions (1)
354 Views
1 Reply
Reply (1)
Message 2 of 2

AronDurkin
Enthusiast
Enthusiast
Accepted solution

the answer is MDGMessage.addNodeAddedCallback isnt it?

0 Likes