Hi

I have a simple script that sets a range of parameters from a nuke.Panel such 
as colourspace, before after etc…

One thing it does is to set up localise and run doLocalise(0) in the script.
(I have Frank's LocaliseThreaded script but using nuke here)

Anyway works well if I use nuke.load in menu .py

i.e. m.addCommand('setupReads', 'nuke.load("setupReads"), setupReads()')

However if I import this and run it as 

m.addCommand('setupReads', 'setupReads. setupReads()' )
then doLocalise(0) has the error
NameError: global name 'doLocalise' is not defined

So I changed this to 
nuke.doLocalise(0) and I get 
AttributeError: 'module' object has no attribute 'doLocalise' (nuke is imported)

So the question is how should I run doLocalise(0) which is a Nuke command from 
an imported module? I can stick with the old way but intrigued to know what I 
am missing.

Many thanks
Howard

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

Reply via email to