Monkey-patch nuke.scriptOpen with your own function during the init sequence that resolves the starting directory and raises the file browser appropriately. Be sure to keep the original function around somewhere though (since you’ll need to call it from your patch function to do the actual opening).
-Nathan From: Christopher Horvath Sent: Tuesday, February 21, 2012 3:04 PM To: [email protected] Subject: [Nuke-python] Setting preferred file-browser directories on startup. Howdy Nuke-python, We have a python wrapper around the Read and Write nodes that's able to query environment variables to correctly set the default paths for the file browsers that these nodes pop up. However, the actual "File->Open" (for loading a nuke script) paths remain defaulted to the last directory that was visited - how do I programmatically set these as well? Thanks! Chris -- I think this situation absolutely requires that a really futile and stupid gesture be done on somebody's part. And we're just the guys to do it. -------------------------------------------------------------------------------- _______________________________________________ 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
