Last active
August 6, 2019 09:30
-
-
Save taikomatsu/526296b591eb944d43a9 to your computer and use it in GitHub Desktop.
Evaluate Tcl Expression
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が使われていた場合に | |
# パスを展開して取り出す方法 | |
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