Hey Gary!
Use join, lrange and split the filename using "_" to remove the _####
frame numbering
brief explanation:
file_name_0000
split _ >> file name 0000 (creates the list without _ )
lrange 0 end-1 >> file name (select the elements from list)
join "_" >> file_name (then you join them again using the underscore
string)
[join [lrange [split [lindex [split [lindex [split [knob [topnode].file]
.] 0] /] end] _] 0 end-1] "_"]_conv.%04d.exr
On Thu, 26 May 2016 14:06:42 -0400, Gary Jaeger <g...@corestudio.com>
wrote:
Hello. I’m interested in this
http://www.nukepedia.com/tcl/write-nodes-filename-from-topmost-read
but the problem I have is the same as somebody in that thread. If we’re
reading a sequence with frame numbers, the frame number is included in
the file name:
ex:
fu/bar/FILE_NAME/FILE_NAME_0000.exr
I get
fu/bar/FILE_NAME/FILE_NAME_0000.mov
but I want
fu/FILE_NAME.mov
any tips on how to modify that TCL to dow what I want?
[file dirname [knob [topnode].file]]/[lindex [split [lindex [split
[knob [topnode].file] .] 0] /] end]_conv.%04d.exr
Gary Jaeger / 650.728.7957 direct / 415.518.1419 mobile
http://corestudio.com
--
Using Opera's mail client: http://www.opera.com/mail/
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users