Split and use topnode’s filename
For file conversions or prep-jobs, if you want to use the original input’s filename in the final write node, you can use the following snippet of code.
1 |
/[join [lrange [split [file dirname [value [topnode].file] ] "/"] 1 6] "/"]/2D/PRERENDER/[lrange [split [file dirname [value [topnode].file] ] "/"] 9 9]_DENOISED/[lindex [split [file tail [knob [topnode].file]] .] 0]_denoised_v02.%04d[file extension [knob [topnode].file]] |
random() function in tcl Create render folders if they do not exist