Last active
October 22, 2020 05:13
-
-
Save taikomatsu/6a1081f7055564e4960d94292a23a7d9 to your computer and use it in GitHub Desktop.
Auto filename from current scene for write node
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
# NukeでWrite.fileによく使うエクスプレッション | |
# 作業中のスクリプトが C:/work/nuke/nuke_test_v01.nk だった場合、 | |
# 以下のExpressionをWrite.fileに記述しておくことで、 | |
# C:/work/nuke/render/nuke_test_v01/nuke_test_v01.####.tif に出力される。 | |
# [lindex [split [lindex [split [knob [topnode].file] .] 0] /] end] の部分で | |
# 現在のnukeスクリプトの名前を取得しているのでファイル名やパスが変わっても自動で出力可能。 | |
# 毎回記述を忘れるのでメモまで。 | |
[file dirname [value root.name]]/render/[lindex [split [lindex [split [value root.name] .] 0] /] end]/[lindex [split [lindex [split [value root.name] .] 0] /] end].%04d.tif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment