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])
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])
