Check out this code, should help.

Heya everybody,

I finally have some time to get back to this issue. I did not get any further with it.

The interesting thing is, it seems to work from time to time, but only for the first stroke in the hirarchy.
doing the same with a different approach results in the same problem:

Sooo anybody with suggestion shwo to get this workig in Nuke 6.3? I still absically want to create a Python button allwoing me to set my lifetime for all selected nodes after painting.

import nuke.rotopaint as rp
import _curvelib

import _curveknob
rotoNode = nuke.toNode('RotoPaint1')
cKnob = rotoNode['curves']
rootLayer = cKnob.rootLayer

for i in rootLayer:
>>>if isinstance(i, rp.Stroke):

>>>>>attribs = i.getAttributes()

>>>>>>attribs.set(0,_curvelib.AnimAttributes.kLifeTimeTypeAttribute, 0 )

thanks a lot[/code]

Magno Borgo
3D | VFX | Motion Graphics
Brasil:Curitiba:GMT= -3
Nuke-python mailing list,

Reply via email to