OK, I shouldn't try to write emails *before* I've had my morning coffee! The code I'm using to get the script path is actually:
[file rootname [value root.name]] Rich On Apr 26, 2012, at 8:57 AM, Rich Bobo wrote: > Hi, > > Does anyone know how to indicate a relative directory change in TCL? In a > Write node, I'd like to designate the directory to write files to that is > parallel to the one the script is in. I'm using this typical form to get the > current script directory: > > [file dirname [file tail [value root.name]]] > > Then, I'd like to do the equivalent of 'cd ../different_dir'. So, I'd like > to have a (hopefully short) chunk of code that would a) grab the script's > current directory, b) navigate up one directory and c) indicate the parallel > directory to write the files to. Should be easy - I just don't know if it's > possible with TCL or if I have to combine some Python in there... > > Thanks for any help! > > Rich > > > Rich Bobo > Senior VFX Compositor > > Mobile: (248) 840-2665 > Web: http://richbobo.com/ > > _______________________________________________ > 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
_______________________________________________ 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