[file dirname  [value root.name]]/../ [file tail [value root.name]] 

should do it I think

 
Howard



>________________________________
> From: Rich Bobo <richb...@mac.com>
>To: Nuke-Users Mailing List <nuke-users@support.thefoundry.co.uk> 
>Sent: Thursday, 26 April 2012, 13:57
>Subject: [Nuke-users] Write node - TCL directory navigation question
> 
>
>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-2665Web:  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

Reply via email to