Feedback

What's your question?

By: Asked from India

nuke python init.py

Hi,

How is it possible to set the nuke,

1) memory usage to 50 %

2) force autosave 120 secs

3) idle for 30 seconds

disk cache size can be set to 20G using the command below. os.environ['NUKE_DISK_CACHE_GB'] = "20"

Althoughthe change does not appear in the preferences window, i presume it has taken place coz

y = os.environ.get('NUKE_DISK_CACHE_GB')

gives a 20.

Is it true.

Brgds,

kNish

Add comment viewed 639 times Latest activity 7 months ago

or Cancel

1 answer

  • 1

dbr [ Editor ]

You should be able to use the nuke.knobDefault method to set default preferences, something along the lines of..

nuke.knobDefault("Preferences.AutoSaveIdle", "30")
NN comments
knishua
-

thank you a lot.

or Cancel