PDA

View Full Version : Need help with this simple script test


PetriJ
04-15-2011, 12:12 AM
Hi,
I'm trying to do very simple test script that prints out controlPoint positions from a simple rotoshape but when I run this script, nuke just crashes every time. So I'm just wondering if I'm doing something wrong here or is it nuke that just is not on the mood?
Cheers, Petri J


n = nuke.toNode('Roto1')
for item in n['curves'].rootLayer:
itemTrans = item.getTransform()
times = itemTrans.getTranslationKeyTimes()
shapeCP = item[0]
print shapeCP.center.getPosition(times[0])

PetriJ
04-15-2011, 10:58 AM
Found the problem. You can't get center.getPosition from b-spline.

CGTalk Moderation
04-15-2011, 10:58 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.