Great that seems to work. Thanks for the quick response. Regards, Gerard Keating
On 4 May 2011 19:12, Nathan Rusch <[email protected]> wrote: > Setting the environment variable NUKE_DISK_CACHE before launching Nuke will > override the value from preferences6.1.nk. However, the Preferences node > doesn't seem to accurately reflect the disk cache location in these cases > (could be a bug, could be intended behavior). > > -Nathan > > -----Original Message----- From: Gerard Keating > Sent: Wednesday, May 04, 2011 10:47 AM > To: Nuke Python discussion > Subject: [Nuke-python] How do I override a users preferences? > > Hi, > I have these lines of code in my init.py and my menu.py: > path="/tmp/sompath" > nuke.knobDefault("preferences.DiskCachePath", path) > prefNode.knob('DiskCachePath').setValue(path) > > But when I look into the preference menu when nuke opens it still has > the old value. > The only thing I can think of is to hack the ~/.nuke/preferences6.1.nk > file but is there a cleaner way to do this? > Regards, > Gerard Keating. > _______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > _______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > _______________________________________________ Nuke-python mailing list [email protected] http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
