Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Last active August 6, 2019 09:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taikomatsu/526296b591eb944d43a9 to your computer and use it in GitHub Desktop.
Save taikomatsu/526296b591eb944d43a9 to your computer and use it in GitHub Desktop.
Evaluate Tcl Expression
# ReadのfileでTcl書式のExpressionが使われていた場合に
# パスを展開して取り出す方法
import nuke
reads = [o for o in nuke.selectedNodes() if o.Class() == 'Read']
for o in reads:
filepath = o.knob('file').getValue()
print nuke.tcl('subst', filepath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment