Cant tell as your formatting has disappeared but if its a blanket message like 
that I usually find its either a mis tabbed line or a mixture of tabs and 
spaces. Otherwise the error is usually more specific

 
Howard



>________________________________
> From: RP <[email protected]>
>To: [email protected] 
>Sent: Friday, 17 August 2012, 9:44
>Subject: [Nuke-python] Script works in script editor but wont import into nuke
> 
>
>Hello all again, 
>
>So I have this problem, I have this little script which connects a bunch of CG 
>passes to a bunch of Noops based on name matching, it works great in the 
>script editor, but if I try to import it into menu.py i get the usual 'error 
>interpreting this plugin'
>
>What am I doing wrong?
>
>RP
>
>def connectAOV():
>
>reads = nuke.selectedNodes("Read")
>noops = nuke.allNodes("NoOp")
>
>for r in reads:
>for n in noops:
>if r['label'].value() == n['name'].value():
>#get NoOp position 
>x = n['xpos'].value()
>y = n['ypos'].value()
>#set Read nodes postion 
>r.setXpos( x )
>r.setYpos( y -200 )
>n.setInput(0,r)
>_______________________________________________
>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