probably because the context is shifted to the gizmo node rather than
staying root().
Try this:
def myFunction():
with nuke.root():
nuke.createNode('Dot')
nuke.addOnUserCreate(myFunction, nodeClass='DespillMadness')
On 24/07/12 4:14 PM, Andreas Frickinger wrote:
def myFunction():
nuke.createNode('Dot')
nuke.addOnUserCreate(myFunction, nodeClass='DespillMadness')
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python