Go to: Synopsis. Return value. Keywords. Flags. Python examples.
openCLInfo([minVertexBuffer=boolean], [valid=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
openCLInfo is NOT undoable, queryable, and NOT editable.
Query OpenCL information.
boolean | The state of whether OpenCL is initialized or not (with the 'valid' flag) |
In query mode, return type is based on queried flag.
OpenCL, debug
minVertexBuffer, valid
Long name (short name) |
Argument types |
Properties |
minVertexBuffer(mvb)
|
boolean
|
|
|
Valid in query mode only. Returns the minimum vertex buffer size.
|
|
valid(v)
|
boolean
|
|
|
Valid in query mode only. Checks if OpenCL is initialized.
|
|
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
# Query if OpenCL is initialized or not
cmds.openCLInfo(query=True, valid=True)
# Result: True #
# Query the minimum vertex buffer size
cmds.openCLInfo(query=True, mvb=True)
# Result: 2000 #