
This functionality is provided as a preview
of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the
Fusion API and Scripts forum.
Because this is a preview of future functionality, there is the possibility that it will change, which will possibly
break any existing programs that use this functionality. Because of that, you should never deliver any programs that use
any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.
The AnimationComponent class. It represents the animation component in the animation workspace.
| Name | Description |
| classType |
Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType(). |
| getTransform |
Method that gets the transformation of this AnimationComponent at a specified time. The transformation is represented by a Matrix3D which defines the translation and rotation of the AnimationComponent. |
| getVisibility |
Returns the visibility of this AnimationComponent at the specified time. |
| Name | Description |
| appearance | Gets and sets the appearance of this AnimationComponent. When getting the appearance, the appearance can be either the overridden one or the one from the design depending on whether the appearance override is toggled on or off for this AnimationComponent. When setting the appearance, the isAppearanceOverridden will be set to true for this AnimationComponent. You can set isAllStoryboardsAppearanceScope before overriding the appearance to specify the scope of the appearance override. |
| displayName | Returns the display name of this AnimationComponent. This is derived from the component name in design. |
| isAllStoryboardsAppearanceScope | Gets and sets whether the appearance override for the current storyboard is applied to all storyboards in the animation or not. When set to true, the appearance override will be applied to all storyboards in the animation, otherwise the appearance override will only be applied to the current storyboard. |
| isAppearanceOverridden | Returns whether the appearance is overridden for this AnimationComponent or not. This returns true if the appearance is overridden for this AnimationComponent, false otherwise. |
| isAppearanceOverrideToggledOn | Gets and sets the toggle status of the appearance override for this AnimationComponent. When toggled on, the appearance override is applied and the appearance of this AnimationComponent is the overridden one. When toggled off, the appearance override is not applied and the appearance of this AnimationComponent is from the design. |
| isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
| objectType | This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object. It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType(): |
| parent | Gets the parent AnimationManager of this AnimationComponent. |
| parentComponent | Returns the parent AnimationComponent object from which this AnimationComponent can be logically reached. |
| subComponents | Returns the sub AnimationComponent objects under this AnimationComponent in the hierarchy. |