...or with a python expression
 
[python {'/localcacheFolder/' +
nuke.thisNode()['file'].value().replace('/Volumes', '_Volumes')}]
 
I know python expression are not the best, but it works
 
 
 
--
Hugo Léveillé
Head of 2D, MELS
hu...@fastmail.net
 
 
 
On Tue, Mar 22, 2016, at 18:39, Tzuen Wu wrote:
> Try:
> [string map {/Volumes /_Volumes} [knob file]]
>
> Sent from my iPhone
>
> On 22/03/2016, at 15:06, jean-luc <jlaz...@gmail.com> wrote:
>> I’m trying to populate the proxy path of a read node automatically
>> with the local cache path of the file.
>>
>> So If the read node is pointing at: */Volumes/RAID/project/file.exr*
>> I want the proxy path to be
>> */localcacheFolder/_Volumes/RAID/project/file.exr*
>>
>> In a perfect world, I’d have this in the nuke menu and I’d have “add
>> localized cache to proxy path”  and “remove localized cache from
>> proxy path”
>>
>> I have an easy way to add a local folder in front of the file path
>> but I’m stuck because of the underscore that is added in front of
>> “Volumes” in the local cache folder
>>
>> So if I put this in the proxy path: */localcacheFolder[knob file]
>> *it almost works except for that underscore thing. Is there a way to
>> skip the first folder of the [knob file]?
>>
>> cheers
>> Jean-Luc
>>
>>
>> _______________________________________________
>> 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
 
_______________________________________________
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