I usually place the tcl inside the label of a backdropnode to test the results, in fact I have a toolset with several expressions saved on it:[join [lrange [split [file dirname [knob root.name]] "/"] 0 end-1] "/"]
[file dirname [value root.name]]
[lindex [split [value root.name] /] end]
April 2012,
14:11 Subject: Re: [Nuke-users] Write node - TCL directory navigation question [file dirname [value root.name]]/../ [file tail [value root.name]] should do it I thinkHowardFrom: Rich Bobo richb...@mac.com To: Nuke-Users Mailing List nuke-users@support.thefoundry.co.uk Sent:
dirname [value root.name]]/../
to be more precise
Howard
From: Howard Jones mrhowardjo...@yahoo.com
To: Nuke user discussion nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:11
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
[file dirname
I usually place the tcl inside the label of a backdropnode to test the results, in fact I have a toolset with several expressions saved on it:[join [lrange [split [file dirname [knob root.name]] "/"] 0 end-1] "/"]
[file dirname [value root.name]]
[lindex [split [value root.name] /] end]
, 26 April 2012, 14:11
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
[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
*To:* Nuke user discussion nuke-users@support.thefoundry.co.uk
*Sent:* Thursday, 26 April 2012, 14:11
*Subject:* Re: [Nuke-users] Write node - TCL directory navigation question
[file dirname [value root.name]]/../ [file tail [value root.name]]
should do it I think
Howard
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
[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]
[file dirname [value root.name]]/../
to be more precise
Howard
From: Howard Jones mrhowardjo...@yahoo.com
To: Nuke user discussion nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:11
Subject: Re: [Nuke-users] Write node - TCL directory
: Howard Jones mrhowardjo...@yahoo.com
To: Nuke user discussion nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:11
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
[file dirname [value root.name]]/../ [file tail [value root.name]]
should do it I
: Re: [Nuke-users] Write node - TCL directory navigation question
[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
From: Howard Jones mrhowardjo...@yahoo.com
To: Nuke user discussion nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:11
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
[file dirname [value root.name]]/../ [file tail [value root.name]]
should do
, 2012, at 9:14 AM, Howard Jones wrote:
[file dirname [value root.name]]/../
to be more precise
Howard
From: Howard Jones mrhowardjo...@yahoo.com
To: Nuke user discussion nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:11
Subject: Re: [Nuke-users] Write node - TCL
From: Rich Bobo richb...@mac.com
To: Howard Jones mrhowardjo...@yahoo.com; Nuke user discussion
nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:38
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
Howard,
Hmm... That just seems
Sent: Thursday, 26 April 2012, 14:38
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
Howard,
Hmm... That just seems to append /../ to the path and doesn't actually
perform the change directory command... Unless I'm missing something.
Thanks,
Rich
On Apr 26
nuke-users@support.thefoundry.co.uk
Sent: Thursday, 26 April 2012, 14:38
Subject: Re: [Nuke-users] Write node - TCL directory navigation question
Howard,
Hmm... That just seems to append /../ to the path and doesn't actually
perform the change directory command... Unless I'm missing something
16 matches
Mail list logo