Remember, Nuke nodes are written with sparse knob values, so unless you change the value of the knob and save the preferences, it's not going to show up in the preferences file.
As far as saving them yourself goes, you might be in a situation where you need to edit the preferences file programmatically, or re-serialize and dump the preferences node (using node.writeKnobs(nuke.TO_SCRIPT | nuke.WRITE_NON_DEFAULT_ONLY)) and write the result to the file yourself. -Nathan From: Richard Bobo Sent: Wednesday, September 24, 2014 9:11 AM To: Nuke Python discussion Subject: [Nuke-python] Script - saving Nuke Prefs... Hi, I am making a script that makes localizing files a bit easier - using Frank Rueter’s new LocaliseThreaded script. (Thanks, Frank!) However, due to some very long Read node localise pathnames that Windows does not like, I need to change the localCachePath value (the value of the Prefs - “Local File Cache - localize to” knob) to a very short path. I am changing the value via a script, which changes it while Nuke is open, but of course the change is only temporary, since the Save Prefs button is not pressed. How can I save the new localCachePath value - in effect, pressing the Save Prefs? I checked the preferences file and the localized file path is not stored there. Where the heck does it get saved…? Any help would be appreciated! Thanks, Rich Rich Bobo Senior VFX Compositor Armstrong White Email: rich.b...@armstrong-white.com http://armstrong-white.com/ Email: richb...@mac.com Mobile: (248) 840-2665 Web: http://richbobo.com/ "A professional is someone who can do his best work when he doesn't feel like it." - Alistair Cooke -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python