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

Reply via email to