nuke.memory2.setUsage

nuke.memory2.setUsage(int) bool

If the value given is less than the current usage, free memory to the new usage.

Parameters:

amount – number of bytes to reduce current usage to

Returns:

bool True if anything was freed