Go to: Synopsis. Return value. Flags. Python examples.
hardware([brdType=boolean], [cpuType=boolean], [graphicsType=boolean], [megaHertz=boolean], [numProcessors=boolean])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
hardware is undoable, NOT queryable, and NOT
editable.
Return description of the hardware available in the machine.
brdType, cpuType, graphicsType, megaHertz, numProcessors
Long name (short name) |
Argument types |
Properties |
cpuType(cpu) |
boolean |
 |
|
brdType(brd) |
boolean |
 |
|
Returns IP number identifying the CPU motherboard |
|
graphicsType(gfx) |
boolean |
 |
|
Returns string identifying graphics hardware type |
|
megaHertz(mhz) |
boolean |
 |
|
Returns string identifying the speed of the CPU chip |
|
numProcessors(npr) |
boolean |
 |
|
Returns string identifying the number of processors |
|
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 have multiple arguments, passed
either as a tuple or a list. |
import maya.cmds as cmds
cmds.hardware( cpu=True )
cmds.hardware( brd=True )