Thanks Nathan.

Am 16.06.2016 um 22:13 schrieb Nathan Rusch:

The knobs are just there to present attributes from whatever shape or stroke is selected, so you need to look at the attribute values directly:

for sel in node['curves'].getSelected():

    if not isinstance(sel, nuke.rotopaint.Stroke):

        continue

    attr = sel.getAttributes()

    brushSize = attr.getValue(frame, attr.kBrushSizeAttribute)

-Nathan

*From: *Igor Majdandzic <mailto:subscripti...@badgerfx.com>
*Sent: *Thursday, June 16, 2016 12:43 PM
*To: *nuke-python@support.thefoundry.co.uk <mailto:nuke-python@support.thefoundry.co.uk>
*Subject: *[Nuke-python] Accessing Transform Information on Stroke

Hey,

could I just pick your brain for a second?

How do I get the brush size of a specific Stroke in the RotoPaint node.

I kinda get the shapes, but I'm drawing blank when accessing the actual
knobs associated with it.
Any hint?

Thanks,
     Igor
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to