【发布时间】:2016-12-26 13:34:47
【问题描述】:
在 The Foundry Nuke 中,我正在尝试编写脚本。按下Create 按钮后,我得到了一个特殊的Transform 节点。我想捕捉这个正在创建的节点,即如果它是一个跟踪器,我希望那个跟踪器在我的脚本中获取它,以便我可以操作它。
例子:
track.knob('cornerPinOptions').setValue('Transform (match-move)')
cc = track.knob('createCornerPin')
nuke.Script_Knob.execute(cc) # this creates a transform node
# Now here is the part I can't figure out:
# How to select that transform node being previously created in my script?
我尝试查找最后创建的节点内置函数,但没有找到。我尝试了一些回调,但我不确定如何正确使用它们。
【问题讨论】:
标签: python nuke video-tracking