cheers mate.

this is what I was looking for.


def filenameFix(s):
        if os.name == "nt":
                #print 'Applying dirmap: /Volumes/post/ --> R:/' 
                s = s.replace('/Volumes/post/', 'R:/', 1)
                s = s.replace('/Volumes/system resources/', 'S:/', 1)
        else:
                #print 'Applying dirmap: O:/ --> /Volumes/post/' 
                s = s.replace('O:/', '/Volumes/post/', 1)
                s = s.replace('Y:/', '/Volumes/', 1)
        return s

-adam


        
On 12/11/2012, at 6:06 PM, Frank Rueter <[email protected]> wrote:

> probably the filenameFilters?
> 
> help(nuke.addFilenameFilter)
> 
> There is also a preference for this now in Nuke 7 to provide a UI for this 
> (haven't tested it yet myself).
> 
> 
> On 12/11/12 5:53 PM, adam jones wrote:
>> Hey all
>> 
>> I am looking for a python script that I used to have at another company and 
>> of course back on my box in AU.
>> 
>> I sat I think in the init.py file and evaluated the pathing in read and 
>> write nodes, an if and else thing, solved cross platform issue and this all 
>> happened on the fly when opening a script or sending off to render.
>> 
>> any ideas people
>> 
>> cheers
>> -adam
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Nuke-users mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to