Working Directory

Written by Kevin Fisch on .

Howdy. Just thought I'd share this snippet of a code with you guys. Enter this into the "onScriptLoad" of the project setting to automatically set the working directory to where the nuke file is located. This probably only works in Windows, so if someone gets working versions for the other OS, that would be great.



0 # Ben Dickson 2012-01-22 13:15
That should work fine on any OS.

It can be simplified a bit to:


Or better:
0 # Rich Bobo 2013-01-15 13:16
Very nice - I was looking for something like this...


You have no rights to post comments

We have 2695 guests and 69 members online