Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Last active October 22, 2020 05:13
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/6a1081f7055564e4960d94292a23a7d9 to your computer and use it in GitHub Desktop.
Save taikomatsu/6a1081f7055564e4960d94292a23a7d9 to your computer and use it in GitHub Desktop.
Auto filename from current scene for write node
# 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