Go to: Synopsis. Return value. Flags. MEL examples.
memory [-asFloat] [-freeMemory] [-gigaByte] [-heapMemory] [-kiloByte] [-megaByte] [-pageFaults] [-pageReclaims] [-physicalMemory] [-summary] [-swapFree] [-swapLogical] [-swapMax] [-swapPhysical] [-swapVirtual] [-swaps]
memory is undoable, NOT queryable, and NOT editable.
Used to query essential statistics on memory availability and usage. By default memory sizes are returned in bytes. Since Maya's command engine only supports 32-bit signed integers, any returned value which cannot fit into 31 bits will be truncated to 2,147,483,647 and a warning message displayed. To avoid having memory sizes truncated use one of the memory size flags to return the value in larger units (e.g. megabytes) or use the asFloat flag to return the value as a float.None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-kiloByte(-kb)
|
|
|||
|
||||
-megaByte(-mb)
|
|
|||
|
||||
-gigaByte(-gb)
|
|
|||
|
||||
-asFloat(-af)
|
|
|||
|
||||
-heapMemory(-he)
|
|
|||
|
||||
-freeMemory(-fr)
|
|
|||
|
||||
-physicalMemory(-phy)
|
|
|||
|
||||
-pageFaults(-pf)
|
|
|||
|
||||
-pageReclaims(-pr)
|
|
|||
|
||||
-summary(-sum)
|
|
|||
|
||||
-swaps(-sw)
|
|
|||
|
||||
-swapFree(-swf)
|
|
|||
|
||||
-swapMax(-swm)
|
|
|||
|
||||
-swapVirtual(-swv)
|
|
|||
|
||||
-swapPhysical(-swp)
|
|
|||
|
||||
-swapLogical(-swl)
|
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
memory -freeMemory; // Result: 548388864 // memory -freeMemory -megaByte; // Result: 522 // memory -freeMemory -megaByte -asFloat; // Result: 521.683594 //