Last active
September 12, 2015 15:07
-
-
Save taikomatsu/43eb3320e2401fe554e4 to your computer and use it in GitHub Desktop.
Evaluate Tcl Expression 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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