Thanks Frank, that was it!

On Jul 23, 2012, at 9:43 PM, Frank Rueter wrote:

> 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

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

Reply via email to