Actually the file command in tcl would be cleaner and cross platform. [file tail [value rootname]]
Will return the return the file name stopped of path info. If you needed without the extension you could use: [file rootname [file tail [value rootname]]] Best, Chris Sent from my iPhone On Dec 18, 2011, at 8:50 AM, Julien Chandelle <[email protected]> wrote: > if you put this you normaly have the name with the extension > [lindex [split [value root.name] /] end] > > and with that you will have without the extension > [lindex [split [lindex [split [value root.name] /] end] .] 0] > > > On Sun, Dec 18, 2011 at 5:34 PM, Peter Hartwig <[email protected]> > wrote: > I cant do it off the top of my head, but isn't there an easy way to strip out > the filename from that? in python there's a few ways of doing it using the > 'os.' library as far as i remember > > pete > www.freelunch.dk > > > > On 12/18/11 5:31 PM, Gary Jaeger wrote: >> Is there a way to return only the current script name? If I use [value >> root.name] it returns the entire file path including the file name. Thanks! >> >> -- >> Gary Jaeger // Core Studio >> 249 Princeton Avenue >> Half Moon Bay, CA 94019 >> 650 728 7060 >> http://corestudio.com >> >> >> >> _______________________________________________ >> 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 > > > > -- > Julien Chandelle > GSM : +32 (0) 494 277 542 > julienchandelle.be > @jimbiscuit || imdb > || Nuke , AE & Fusion Compositor || > > _______________________________________________ > 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
