Go to: Synopsis. Return value. Related. Flags. Python examples.
vnnWatchPoint(
string string
, [create=boolean], [deleteAll=boolean], [disableAll=boolean], [enable=boolean], [enableAll=boolean], [queryHasWatchPoint=boolean], [queryIsEnabled=boolean], [queryParameterDescription=string], [queryParameterValue=string], [queryParameterValueDescription=[string, string]], [queryParameterValues=string], [queryParameters=boolean], [queryRecordedValues=string], [remove=boolean], [setParameterValue=[string, string]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
vnnWatchPoint is undoable, NOT queryable, and NOT editable.
The vnnWatchpoint command is used to operate vnn watchpoints.
The first argument is the full name of the DG node that the VNN node is in.
The second argument is the name of the full path of the VNN node.
Then third argument is the name of the VNN port.
| string | The result of the operation |
vnn, vnnCompound, vnnNode
create, deleteAll, disableAll, enable, enableAll, queryHasWatchPoint, queryIsEnabled, queryParameterDescription, queryParameterValue, queryParameterValueDescription, queryParameterValues, queryParameters, queryRecordedValues, remove, setParameterValue
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
# Set a new watchpoint on port "input" of node "myNode"
cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", create=True)
# Remove a watchpoint set on port "input" of node "myNode"
cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", remove=True)
# Remove all watchpoints
cmds.vnnWatchPoint("bifrostGraphShape1", deleteAll=True)
# Disable all watchpoints
cmds.vnnWatchPoint("bifrostGraphShape1", disableAll=True)
# Enable all watchpoints
cmds.vnnWatchPoint("bifrostGraphShape1", enableAll=True)
# Query if port "input" of node "myNode" has a watchpoint set
hasWatchPoint = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryHasWatchPoint=True)
print hasWatchPoint
# True
# Query if watchpoint on port "input" of node "myNode" is enabled
isEnabled = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryIsEnabled=True)
print isEnabled
# True
# Query the parameters of watchpoint set on port "input" of node "myNode"
wpParameters = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryParameters=True)
print wpParameters
# [u'max', u'min', u'last']
# Query the description of parameter "max" of watchpoint set on port "input" of node "myNode"
maxDesc = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryParameterDescription="max")
print maxDesc
# Record the maximum value
# Query the values of parameter "max" of watchpoint set on port "input" of node "myNode"
maxValues = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryParameterValues="max")
print maxValues
# [u'enable', u'disable']
# Query the description of value "enable" of parameter "max" of watchpoint set on port "input" of node "myNode"
maxEnableDesc = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryParameterValueDescription=["max","enable"])
print maxEnableDesc
# Enable
# Query the value currenly set on parameter "max" of watchpoint set on port "input" of node "myNode"
maxValue = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryParameterValue="max")
print maxValue
# enable
# Query the value recorded for parameter "max" of watchpoint set on port "input" of node "myNode"
maxRecordedValue = cmds.vnnWatchPoint("bifrostGraphShape1", "/myNode", "input", queryRecordedValues="max")
print maxRecordedValue
# [u'-1.0298']