Hello,

I was trying to expression link the motion_blur properties of a Roto
shape's motion blur and kept encountering crashes.
I simplified my setup to the extreme and the crash still happens.

Procedure:
Create a Roto node.
In it, create a random shape.
Select that shape.

In the script editor type:

r = nuke.toNode('Roto1')

k = r['feather_type']

k.setExpression('2')


This works and sets the enumeration pulldown to index2, which is smooth1

r = nuke.toNode('Roto1')

k = r['feather_type']

print k.value()

# Result: smooth1


Now if I try on motionblur_shutter_offset_type: (value first, to check I
can access the knob)

r = nuke.toNode('Roto1')

k = r['motionblur_shutter_offset_type']

print k.value()

# Result: centred


No problems so far.

Let's try setting the expression:

r = nuke.toNode('Roto1')

k = r['motionblur_shutter_offset_type']

print k.setExpression('2')


Crash


I'm on windows 8.1, using nuke 9.0v5


Am I doing anything wrong or is that a bug?



Thanks,

*Erwan* LEROY
www.erwanleroy.com
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to