Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Last active September 12, 2015 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taikomatsu/43eb3320e2401fe554e4 to your computer and use it in GitHub Desktop.
Save taikomatsu/43eb3320e2401fe554e4 to your computer and use it in GitHub Desktop.
Evaluate Tcl Expression 2
# ReadのfileでTcl書式のExpressionが使われていた場合に
# パスを展開して取り出す方法 改良版
# ※この方法だと%04dとかも一緒に展開される模様
import nuke
for o in nuke.selectedNodes('Read'):
filepath = o['file'].evaluate()
print(filepath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment