Why not just build the group(s) via Python from scratch every time you call
whatever script you're already calling?
FWIW, I just tried similar code to what you're doing here, and it works
fine, including the nodePaste call (this is on 6.2v1).
-Nathan
-----Original Message-----
From: Blamsammich
Sent: Wednesday, February 23, 2011 8:55 PM
To: Nuke Python discussion
Subject: [Nuke-python] onCreate when using nuke.nodePaste()
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
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python