Hi Fredrik,
Thanks for the help. I did have your script at hand as a second choice, but
I'd still like to understand the built-in function. Having it available in
the preferences is a big selling point at the moment (until we become way
more strict on the install).

So far I have tracked down intallpath/nuke/plugins/filenameFix.py, which
returns nuke.tcl("filename_fix",filename)

Trying to find that tcl script at the moment.
On Jan 4, 2015 6:04 PM, "Fredrik Averpil" <fredrik.aver...@gmail.com> wrote:

> You could look into myFilenameFilter. You can put it into your init.py if
> you have one.
>
> def myFilenameFilter(filename):
>     if nuke.env['MACOS']:
>         filename = filename.replace( '//10.0.0.1/Projects', 
> '/Volumes/Projects' ) # convert from Windows to OSX
>         filename = filename.replace( '/mnt/Projects', '/Volumes/Projects' ) # 
> convert from Linux to Mac OSX
>
>     if nuke.env['WIN32']:
>         filename = filename.replace( '/Volumes/Projects', 
> '//10.0.0.1/Projects' ) # convert from OSX to Windows
>         filename = filename.replace( '/mnt/Projects', '//10.0.0.1/Projects' ) 
> # convert from Linux to Windows
>
>     if nuke.env['LINUX']:
>         filename = filename.replace( '/Volumes/Projects', '/mnt/Projects' ) # 
> convert from OSX to Linux
>         filename = filename.replace( '/10.0.0.1/Projects', '/mnt/Projects' ) 
> # convert from Windows to Linux
>
>     return filename
>
> nuke.addFilenameFilter(myFilenameFilter)
>
> ​
>
> Regards,
> Fredrik
>
>
>
> On Sun Jan 04 2015 at 10:22:41 CET Erwan Leroy <er...@erwanleroy.com>
> wrote:
>
>> Hi everyone, and Happy new year.
>> I'm looking at using the built in "platformPathRemaps" (knob in
>> preferences). It works great for reads and writes, but doesn't seem to work
>> with gizmo locations.
>> I wanted to look into the script but cannot find anything so far, and
>> there seems to be no documentation whatsoever about that knob. (A google
>> search doesn't return anything).
>> Does anyone know if the remapping is handles by a python script?
>>
>> Cheers
>> Erwan
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to