you can first split the path, then re-join parts of the resulting list:

set parts [file split //server/share/show/sequence/shotname/images/2d/comps/v001/filesequence.####.dpx]

join [lrange $parts 0 5] "/"





On 24/08/12 11:21 AM, Toki Wartooth wrote:
Hi..

I'm trying to split the path at a certain point, meaning that I'd like to take the path of a read node and chop it off a some point.

So, if I have Read1 = //server/share/show/sequence/shotname/images/2d/comps/v001/filesequence.####.dpx


I'd like to chop it down to //server/share/show/sequence/shotname

I started with something like [file dirname [value Read1.file]] which gets me to //server/share/show/sequence/shotname/images/2d/comps/v001

and I thought perhaps lindex, or split might be in order, but I'm not getting what I want. Any thoughts?

Cheers, and thanks as always..




_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to