简体   繁体   中英

how to change stroke value in nuke roto node?

I didn't find anything related to that in the docs.

n = nuke.selectedNode()
if n.Class() == "Roto":
   print n.name

Do you mean values under the Stroke tab? Those are only available on the RotoPaint node, not the Roto node. You can set them when using Brush/Cloning/Smear etc but not on roto curves

n = nuke.selectedNode()
n['brush_size'].setValue(10)

RotoPaint vs Roto

node = nuke.selectedNode()
curves=node["curves"]
brush=curves.toElement('Brush1')
attrs = brush.getAttributes()
attrs.set("bs",20)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM