Go to: Related nodes. Attributes.
While the clipLibrary node manages source clips, the clipScheduler node manages instanced clips. In other words, the clipLibrary handles the raw clip data, and the clipScheduler manages the placement of the clips on the timeline (clips placed in Trax).
Each character will be associated with at most a single clipLibrary and a single clipScheduler.
The clipLibrary node is able to keep track of source clips and their associated animCurves by connections in the dependency graph. Each source clip is represented by an animClip node which is connected to the clipLibrary's sourceClip attribute. The index of the array attribute where the sourceClip attribute is connected is used as an unique index to identify the connected source clip.
Animation curves are connected to the clipLibrary using function attributes. The function attributes allow the library to evaluate the curves at times other than the current scene time. The indices of the attributes where the animation curves are connected are used to correlate the curve to its associated clip and channel, as follows:
Since the clipLibrary manages its associated clips via connections, it is important that all required connections are made when setting up clips. The API contains two function sets: MFnClip and MFnCharacter, which will make the proper clipLibrary connections when you create clips using the API.
Node name | Parents | Classification | MFn type | Compatible function sets |
---|---|---|---|---|
clipLibrary | node | animation | kClipLibrary | kBase kNamedObject kDependencyNode kClipLibrary |
activeClip, characterMapping, characterdata, clip, clipEval, clipEvalList, clipEval_Hidden, clipEval_Inmap, clipEval_InmapFrom, clipEval_InmapTo, clipEval_Outmap, clipEval_OutmapFrom, clipEval_OutmapTo, clipEval_Raw, clipFunction, clipIndexMapping, clipName, duration, sourceClip, start
Long name (short name) | Type | Default | Flags | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
activeClip
(act )
| integer | -1 | ![]() ![]() ![]() | ||||||||||||||
characterdata
(cd )
| compound | n/a | ![]() ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
clip
(cl )
| Message | n/a | ![]() ![]() ![]() ![]() | ||||||||||||||
clipEvalList
(cel )
| compound | n/a | ![]() ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
clipFunction
(cf )
| function | NULL | ![]() ![]() | ||||||||||||||
clipName
(cn )
| string | TmultiSharedObject::create<TdataString>"unusedClip" | ![]() ![]() ![]() ![]() | ||||||||||||||
duration
(du )
| time | 0film | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
sourceClip
(sc )
| Message | n/a | ![]() ![]() ![]() ![]() | ||||||||||||||
start
(st )
| time | 0film | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||