Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

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.

Return value

string

Flags

brdType, cpuType, graphicsType, megaHertz, numProcessors
Long name (short name) Argument types Properties
cpuType(cpu) boolean create
Returns type of CPU
brdType(brd) boolean create
Returns IP number identifying the CPU motherboard
graphicsType(gfx) boolean create
Returns string identifying graphics hardware type
megaHertz(mhz) boolean create
Returns string identifying the speed of the CPU chip
numProcessors(npr) boolean create
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.

Python examples

import maya.cmds as cmds

cmds.hardware( cpu=True )
cmds.hardware( brd=True )