nuke.memory2
Memory module containing functionality for querying and controlling Nuke’s Memory API, currently the module is named memory2 for backwards compatibility with the old nuke.memory(cmd, value) function which is now deprecated. Once removed this module will be deprecated and it will be renamed to nuke.memory. To avoid future conflicts it is recommended to import like so:
from nuke import memory2 as memory
Functions
Creates a dictionary of allocators mapped by their name to another dictionary containing various metadata information about the allocator. |
|
Attempts to clear all memory, setUsage(0) and clearUsage() are effectively the same. |
|
Creates a dictionary of node names mapped to a list of memory information for that node. |
|
Reports the maximum memory usage Nuke will aim to use. |
|
Set the maximum memory usage Nuke will aim to use. |
|
If the value given is less than the current usage, free memory to the new usage. |
|
Reports the total RAM detected by Nuke. |
|
Reports the total virtual memory (VM) detected by Nuke. |
|
Reports the current memory usage allocated. |