pymel.core.animation.mute

mute(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
disable (d) bool ../../../_images/create.gif
 
Disable muting on the channels
force (f) bool ../../../_images/create.gif
 

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 )

Previous topic

pymel.core.animation.movieInfo

Next topic

pymel.core.animation.nonLinear

Core

Core Modules

Other Modules

This Page