Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.
mute([disable=boolean], [force=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
mute is undoable, queryable, and NOT editable.
The mute command is used to disable and enable playback on a channel. When a channel is muted, it retains the value that it was at prior to being muted.| string[] | Name(s) of the mute node(s) |
In query mode, return type is based on queried flag.
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
disable(d)
|
boolean
|
|
||
|
||||
force(f)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds
# Mute playback of the ry channel of ty on the sphere
#
sph = cmds.polySphere()
cmds.setKeyframe( '%s.translate' % sph[0] )
cmds.mute( '%s.translateY' % sph[0] )
# Query whether ty is muted
cmds.mute('%s.translateY' % sph[0], q=True )
# Disable muting on any muted attributes on the sphere
#
cmds.mute( sph[0], disable=True )