So some interesting results on this function.
First off, I don't know if it's a local viewer issue, but whenever I use this function it appears to do nothing. Until such time as you either left click on the viewer, or select a different spline in the roto node, then select the original spline again. When you do either of those actions, suddenly the spline will snap to its new position. Secondly, it appears this function only works if the spline has no keyframes. If there is even a single keyframe, the function does nothing. From: [email protected] [mailto:[email protected]] On Behalf Of John Vanderbeck Sent: Thursday, June 02, 2011 4:49 PM To: Nuke Python discussion Subject: RE: [Nuke-python] AnimControlPoint.setPosition Apparently this was a problem of either too much caffeine or not enough. I was misreading the function docs, and can call it properly now. However, it seems to do nothing :( After setting the new position, the spline points do not move, and if you re-read the positions, they remain at their original values From: [email protected] [mailto:[email protected]] On Behalf Of John Vanderbeck Sent: Thursday, June 02, 2011 4:46 PM To: [email protected] Subject: [Nuke-python] AnimControlPoint.setPosition I am trying to use AnimControlPoint.setPosition() to programmatically move control points in a rotoshape. Basically I am iterating through all points in a shape and apply a transformation to each point individually, and then I want to move that point to the new position. Unfortunately I can't seem to get setPosition to work. The docs don't' specify what type of value it is expecting for 'position' and I've tried everything I can think of with no result. The exception keeps indicating it expects a type of unspecified which isn't much help :) Has anyone used this function before?
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
