I have a group node that I am loading into nuke via the nuke.nodePaste() 
command.
I want that first group node to use the onCreate function to load another group 
node inside the first group node also using the nuke.nodePaste() command

The code I have works fine for when the node has been created, but fails when 
executed for real.  I think the onCreate might be calling the other code too 
early. So what would be another option for loading that second group into the 
first on creation?

This is a generic version of all I am doing.

import os
n = nuke.thisNode()
n.begin()
nuke.nodePaste('path/to/second/groupNode.nk')
t = nuke.selectedNode()
t['name'].setValue('what I want it called to link up with master group')
n.end()


Any help on what I am missing would be greatly appreciated.

Thanks!

Justin_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to