pymel.core.animation.timeEditorBakeClips¶
- timeEditorBakeClips(*args, **kwargs)¶
This command is used to bake Time Editor clips and to blend them into a single clip.
Flags:
Long Name / Short Name Argument Types Properties bakeToAnimSource / bas unicode
Bake/merge the selected clips into the animation source. bakeToClip / btc unicode
Bake/merge the selected clips into a clip. clipId / id int
Clip IDs of the clips to bake. combineLayers / cl bool
Combine the layers of the input clip. forceSampling / fs bool
Force sampling on the whole time range when baking. keepOriginalClip / koc bool
Keep the source clips after baking. path / pt unicode
Full path of clips on which to operate. For example: composition1|track1|group; composition1|track1|group|track2|clip1. sampleBy / sb time
Sampling interval when baking crossfades and timewarps. targetTrackIndex / tti int
Specify the target track when baking containers. If targetTrackIndex is specified, the track index within the specified node is used. If targetTrackIndex is not specified or is the default value (-1), the track index within the current node is used. If targetTrackIndex is -2, a new track will be created. targetTracksNode / ttn unicode
Target tracks node when baking containers. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.timeEditorBakeClips
Example:
- ::
import pymel.core as pm
# Bakes the currently selected clips to a new clip named “testClip” pm.timeEditorBakeClips(bakeToClip=”testClip”)