I have a pretty novice question.

For some reason on creation of a node, I cannot set the ypos by itself.  It 
works when I set both xpos and ypos, and xpos can be set by itself.

Here are examples. In example 3 the ypos isn't set.

#Example1 xpos and ypos
parent1 = nuke.nodes.Dot(xpos=0,ypos=0)
parent1xpos = parent1['xpos'].value()
parent1ypos = parent1['ypos'].value()
child = 
nuke.nodes.Dot(inputs=[parent1],xpos=parent1xpos+100,ypos=parent1ypos+100)

#Example2 xpos by itself
parent2 = nuke.nodes.Dot(xpos=200,ypos=0)
parent2xpos = parent2['xpos'].value()
child2 = nuke.nodes.Dot(inputs=[parent2],xpos=parent2xpos+100)

#Example3 ypos by itself
parent3 = nuke.nodes.Dot(xpos=400,ypos=0)
parent3ypos = parent3['ypos'].value()
child3 = nuke.nodes.Dot(inputs=[parent3],ypos=parent3ypos+100)



_______________________________________________
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