I made a callback that fires whenever a new “file” node is created in the maya scene. This callback will attach an “Attribute Changed” callback that will fire whenever the “fileTextureName” attribute is changed.
Everything works fine, until I open another file, which during load, is creating and setting the callbacks, which in turn, are all triggered since technically, Maya is creating nodes and setting value during a Load operation.
My question is, is it possible to separate the act of Loading a File from the act of the user creating a new Node?
In other words, is it possible to create a callback for “Node Added” that will NOT be triggered by a Load operation?
Note: I am using API callbacks.