Your Ad Here

Go to: Synopsis. Flags. Return value. Keywords. Related. Python examples.

Synopsis

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 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.

Flags

disable, force
Long name (short name) [argument types] Properties
disable(d) boolean createqueryedit
Disable muting on the channels

In query mode, this flag needs a value.

force(f) boolean query
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 disable.

In query mode, this flag needs a value.


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.

Return value


[string array] name of the mute node(s)

Keywords

mute, animation, channels

Related

setKeyframe

Python examples

import maya.cmds as cmds

# Mute playback of the ry channel of the sphere's ty
#
sph = cmds.polySphere()
cmds.setKeyframe( '%s.translate' % sph[0] )
cmds.mute( '%s.translateY' % sph[0] )
# Disable muting on any muted attributes on the sphere
#
cmds.mute( sph[0], disable=True )
	

Return to Autodesk Index


Your Ad Here