Object Hierarchy | Related C++ Class: ActionSource | Supported Parameter List: Action
SIObject ProjectItem Source ActionSource
ActionSource objects are a specialized type of Source object, representing sources for action and shape animation clips. These types of sources Action sources are composed of DataSource items (such as FCurves, Expressions, etc.), which you can access as AnimationSourceItems via the ActionSource.SourceItems property. See the siAnimationSourceItemType enum for a list of supported animation source types.
Actions are based on changes to parameters, usually called 'low-level animation' because it is parameter-based. Typically, action components are FCurves, Constraints, StaticSources (static poses), and ShapeKeys. You can bundle these components as action sources using the Model.AddActionSource method.
Shape animation is based on changes to the positions of points, thereby changing the overall shape of the geometry from the reference shape. (The reference shape comprises the results of the modeling operator stack.) These changes to the clusters are saved as ShapeKeys under the Clusters node of the object's Geometry in the UI. In the Mixer, the ShapeKey is instantiated as a ShapeClip.
Note: In action sources, the path to the parameter to which it will be applied by default is always stored as a Relative Name so that sources can be instantiated under any other model without having to necessarily provide a connection mapping template.
Action sources are often tied to the Mixer because of the Mixer's interaction with Clips; however, actions which have never been instantiated or which represent caching in the SimulationEnvironment object may not be associated with any Mixer or Model, but only under the Sources container or the Scene > Environments > Environment > Caches container. In these cases, some of the functionality is limited (for example, calling the base properties SIObject.Parent or ProjectItem.Model will not work since there is no Model that contains these sources.
To get a pointer to an existing action source from its clip, you can use the Clip.Source property. All action sources, whether instantiated or not, are also available as a DataSourceCollection from the Model to which they belong via the Model.Sources property.
Important: Although these sources are available as a DataSourceCollection, when you iterate over them, you are actually getting ActionSource objects, not individual DataSource objects such as FCurves, Expressions, etc. This is important to know because the ActionSource object gives access to a specific set of methods and properties.
To create ActionSource objects using the object model, you can use the Model.AddActionSource method. There is also a variety of scripting commands that also create ActionSource objects by loading presets (LoadActionPreset), storing current low-level animation (SIStoreAction and StoreAction), and by plotting (PlotToActions and PlotAndApplyActions).
Note: If you are working in a version of Softimage older than v4.0, the ActionSource object will not support the Source interface, which means that you cannot access the contents of the source via Clip.Source. Calling the base property SIObject.Parent on an ActionSource returns the Model. If the ActionSource is an environment cache, the parent returned is the SimulationEnvironment.
• See ActionSource.1.vbs
Autodesk Softimage 2011