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 <[email protected]> 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
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to