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

Synopsis

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.

Return value

booleanThe state of whether OpenCL is initialized or not (with the 'valid' flag)

In query mode, return type is based on queried flag.

Keywords

OpenCL, debug

Flags

minVertexBuffer, valid
Long name (short name) Argument types Properties
minVertexBuffer(mvb) boolean query
Valid in query mode only. Returns the minimum vertex buffer size.
valid(v) boolean query
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.

Python examples

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 #