Not sure if this is the problem you're having, but keep in mind that changing the "views" knob of a Roto node won't change the views for all its shapes, but only for the shapes that are "selected". To change the views for all shapes, you'd have to loop through all the shapes in the 'curves' knob and set the "views" attribute for each one of them.
If it helps, here's something I sent to the list a while back to conveniently change the views on multiple Roto & RotoPaint nodes in a script: http://pastebin.com/ViZa5i9g Cheers, Ivan On Thu, Mar 1, 2012 at 6:19 PM, Hugo Léveillé <[email protected]> wrote: > ok. Well its still working...no ? > > rotoList = [ n.name() for n in nuke.allNodes("Roto") ] > > > for r in rotoList: > > roto = nuke.toNode(r) > > roto["view"].setValue("left") > > > On Fri, Mar 2, 2012, at 01:18, coreydrake wrote: > > rotoList is a list of names of nodes, not the instance of the nodes. > > _______________________________________________ > Nuke-python mailing list > [email protected], > http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > -- > Hugo Léveillé > TD Compositing, Vision Globale > [email protected] > > _______________________________________________ > 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
