there is no attachment so I'm not sure what you're trying to do, but
when it comes to running scripts when a nuke project is loaded this has
helped in the past:
nuke.addOnUserCreate( myFunc, nodeClass='Root' )
"nuke.thisNode()" can replace root in myFunc.
On 7/07/12 8:41 AM, Lukullus wrote:
So I've been bashing my head against the wall for a bit over this
issue and was hoping someone could help me out.
I've attached the NukeTestWindow.py with one significant alteration
I added the line to get the file's name
self.filePath = nuke.root()['name'].value()
and this line returns nothing if it's in the default layout as it
seems this information isn't available (the user preferences as well)
The info about the current nuke file isn't available until after the
GUI is made, so how do I put a callback in or a hook to load my scene
information once the scene has finally loaded.
thanks for the help
luk
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python