This is working fine for me
for r in nuke.allNodes("Roto"):
r["view"].setValue("right")
What does you rotoList contains ? Node or nodes name ? If you
gather them using something like allNodes or selectedNodes, they
are alreay node object so no need for the toNode.
On Thu, Mar 1, 2012, at 19:35, coreydrake wrote:
Hi, I am trying to set the views of my roto node to left, right
and main.
Manually, I am having no problem using:
nuke.selectedNode().knob("view").setValue("left right main")
However, when trying to do it within my class in roto.py I seem
to get no effect:
for item in rotoList:
rotoNode = nuke.toNode(item)
rotoNode.knob("view").setValue("left right main")
Has anyone else encountered this problem before?
_______________________________________________
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