Go to: Synopsis. Return value. Related. Flags. Python examples.
timeEditorBakeClips(
objects
, [bakeToAnimSource=string], [bakeToClip=string], [clipId=int], [combineLayers=boolean], [forceSampling=boolean], [keepOriginalClip=boolean], [path=string], [sampleBy=time], [targetTrackIndex=int], [targetTracksNode=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
timeEditorBakeClips is undoable, queryable, and editable.
This command is used to bake Time Editor clips and to blend them into a single clip.
In query mode, return type is based on queried flag.
timeEditorClip
bakeToAnimSource, bakeToClip, clipId, combineLayers, forceSampling, keepOriginalClip, path, sampleBy, targetTrackIndex, targetTracksNode
Long name (short name) |
Argument types |
Properties |
|
bakeToAnimSource(bas)
|
string
|
|
|
Bake/merge the selected clips into the animation source.
|
|
bakeToClip(btc)
|
string
|
|
|
Bake/merge the selected clips into a clip.
|
|
clipId(id)
|
int
|
|
|
Clip IDs of the clips to bake.
|
|
combineLayers(cl)
|
boolean
|
|
|
Combine the layers of the input clip.
|
|
forceSampling(fs)
|
boolean
|
|
|
Force sampling on the whole time range when baking.
|
|
keepOriginalClip(koc)
|
boolean
|
|
|
Keep the source clips after baking.
|
|
path(pt)
|
string
|
|
|
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)
|
string
|
|
|
Target tracks node when baking containers.
|
|
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.
|
import maya.cmds as cmds
# Bakes the currently selected clips to a new clip named "testClip"
cmds.timeEditorBakeClips(bakeToClip="testClip")