Feedback

What's your question?

By: Asked from India

How do I use python to set disk cache size in Nuke?

Hi,

How is it possible to set all nuke disk cache size to 20 gb from a central location.

I know that i need to use the menu.py or such user setup file. What command will help set the disk cache.

extending this question...how is it possible to set the memory usage = 50 % using python.

Brgds,

kNish

Add comment viewed 386 times Latest activity 10 months ago

or Cancel

1 answer

  • 1

paul nendick [ Editor ]

From page 575 of the Nuke 6.0v6 User Guide: http://www.thefoundry.co.uk/dl_file.aspx?ui=3A36E7BB-45BD-48AA-88EE-52CD6D03221E

"""

NUKE_DISK_CACHE_GB:

The maximum size the flipbook cache can reach (in giga-bytes). If this variable is not set, the location is determined by the flipbook cache size setting in the Preferences.

"""

So, presuming you're using Linux that would mean adding this environment variable to your login profile and/or to a script you use to launch Nuke with pre-set options. using bash it would be:

export NUKE_DISK_CACHE_GB=20

As for 'memory usage' you might want to look at NUKE_DEBUG_MEMORY in the same documentation.

/p

or Cancel