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|
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 have multiple arguments, passed either as a tuple or a list.
Derived from mel command maya.cmds.mute
import pymel.core as pm # Mute playback of the ry channel of ty on the sphere # sph = pm.polySphere() pm.setKeyframe( '%s.translate' % sph ) # Result: 3 # pm.mute( '%s.translateY' % sph ) # Result: [nt.Mute(u'mute_pSphere1_translateY')] # # Query whether ty is muted pm.mute('%s.translateY' % sph, q=True ) # Result: True # # Disable muting on any muted attributes on the sphere # pm.mute( sph, disable=True )