简体   繁体   English

如何更改 nuke roto 节点中的笔划值?

[英]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.这些仅在 RotoPaint 节点上可用,在 Roto 节点上不可用。 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 RotoPaint 与 Roto

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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