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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
disable (d) | bool | ||
|
|||
force (f) | bool | ||
Forceable disable of muting on the channels. If there are keys on the mute channel, the animation and mute node will both be removed. If this flag is not set, then mute nodes with animation will only be disabled.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.mute
Example:
import pymel.core as pm
# Mute playback of the ry channel of ty on the sphere
#
sph = pm.polySphere()
pm.setKeyframe( '%s.translate' % sph[0] )
# Result: 3 #
pm.mute( '%s.translateY' % sph[0] )
# Result: [nt.Mute(u'mute_pSphere1_translateY')] #
# Query whether ty is muted
pm.mute('%s.translateY' % sph[0], q=True )
# Result: True #
# Disable muting on any muted attributes on the sphere
#
pm.mute( sph[0], disable=True )