Re: [Nuke-python] Re: ReadNode folder Expression/Script

2012-10-23 Thread Hugo Léveillé
[python {os.path.dirname(nuke.thisNode()['file'].value())}] this should get you started On Tue, Oct 23, 2012, at 09:13, Marc Gutowski wrote: Vincent Langer wrote: --> --> hi smart scripting people! i want to add in ea

Re: [Nuke-python] Re: ReadNode folder Expression/Script

2012-10-20 Thread Vincent Langer
thanks Gustaf and thanks chris :) This message was sent using IMP, the Internet Messaging Program. ___ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefou

Re: [Nuke-python] Re: ReadNode folder Expression/Script

2012-10-19 Thread chris
two ways to do it using TCL: [join [lrange [split [value file] "/"] end-1 end-1] "/"] or: [join [lrange [split [file dirname [value file]] "/"] end end] "/"] only tested it on OSX, should also work on linux but not sure about windows - i guess you'd have to change the slash to a backslash, so

Re: [Nuke-python] Re: ReadNode folder Expression/Script

2012-10-19 Thread Gustaf Nilsson
you can use python if you want.. [python -eval {nuke.thisNode().blablalba[-1]}] On Fri, Oct 19, 2012 at 12:40 PM, Vincent Langer wrote: > got it : > > [join [lrange [split [value file] / ] 5 5 ] / ] > > but is there a way to select the splitted elements backwards like with > python ( [-1] ) ?