2013年4月9日火曜日

Nuke python


選択したリードノードの設定を変えるスクリプト。

for n in nuke.selectedNodes():
    n['auto_alpha'].setValue(1.0)
    n['last'].setValue(2000)
    n['frame_mode'].setValue('start_at')
    n['frame'].setValue('1')
    n['after'].setValue('loop')


textノードの設定を変更
for n in nuke.selectedNodes():
    n['translate'].setValue([0.0, 100.0])
    n['yjustify'].setValue("top")