![]() | InDesign SDK 20.5 |
#include <IAnimationAttributeSuite.h>

Public Member Functions | |
| virtual bool | HasMultipleSelections () const =0 |
| virtual ErrorCode | ApplyMotionPreset (const UIDRef &presetRef)=0 |
| virtual bool | CanApplyMotionPreset (void) const =0 |
| virtual bool | GetMotionPresetApplied (UID &presetUID) const =0 |
| virtual bool | CanApplyAnimation (void) const =0 |
| virtual bool | GetBaseMotionPresetNameApplied (PMString &presetName) const =0 |
| virtual bool | HasMSOAsTimingParent (bool *pMixed=nil) const =0 |
| virtual bool | HasAnimationApplied (bool *pMixed=nil) const =0 |
| virtual bool | HasCustomAnimationSettings (bool *pMixed=nil) const =0 |
| virtual void | SetShowAnimationProxy (bool turnOn)=0 |
| virtual bool | GetShowAnimationProxy () const =0 |
| virtual bool | GetName (PMString &name) const =0 |
| virtual bool | SetName (const PMString &newName)=0 |
| virtual bool | GetAnimationHideInitially (bool &hideInitially) const =0 |
| virtual bool | SetAnimationHideInitially (bool hiddenUntilAnimated)=0 |
| virtual bool | GetAnimationHideAfter (bool &hideAfter) const =0 |
| virtual bool | SetAnimationHideAfter (bool hideAfter)=0 |
| virtual bool | GetAnimationDuration (PMReal &duration) const =0 |
| virtual bool | SetAnimationDuration (const PMReal &duration)=0 |
| virtual bool | SetAnimationPlays (const uint32 &numPlays)=0 |
| virtual bool | GetAnimationPlays (uint32 &numPlays) const =0 |
| virtual bool | GetAnimationPlaysLoop (bool &playsLoop) const =0 |
| virtual bool | SetAnimationPlaysLoop (bool setToLoop)=0 |
| virtual bool | GetApplicableTriggerEvents (std::vector< EventTriggerType > &applicableList) const =0 |
| virtual bool | GetNumAnimationTriggerEvents (uint32 &numTriggers) const =0 |
| virtual bool | GetNthAnimationTriggerEvent (uint32 which, EventTriggerType &trigger) const =0 |
| virtual bool | AddAnimationTriggerEvent (const EventTriggerType &triggerEvent)=0 |
| virtual bool | RemoveAnimationTriggerEvent (const EventTriggerType &triggerEvent)=0 |
| virtual bool | CanReverseAnimationForEvent (const EventTriggerType &triggerEvent) const =0 |
| virtual bool | GetReverseAnimationForEvent (const EventTriggerType &trigger, bool &canbeReversed) const =0 |
| virtual bool | SetReverseAnimationForEvent (const EventTriggerType &triggerEvent, bool setToReverse)=0 |
| virtual bool | GetAnimateOption (AnimationOptions &animateOption) const =0 |
| virtual bool | SetAnimateOption (const AnimationOptions &animateOption)=0 |
| virtual bool | GetSimpleEaseType (AnimationEaseType &easeType) const =0 |
| virtual bool | SetSimpleEaseType (const AnimationEaseType &easeType)=0 |
| virtual bool | GetAnimationTranformOffsetPoint (PMPoint &offsetPoint) const =0 |
| virtual bool | SetAnimationTranformOffsetPoint (const PMPoint &offsetPoint)=0 |
| virtual bool | GetAnimationMotionPath (AnimationPathDataList &path) const =0 |
| virtual bool | SetAnimationMotionPath (const AnimationPathDataList &path)=0 |
| virtual bool | GetAnimationMotionPath (PMPathPointList &path) const =0 |
| virtual bool | SetAnimationMotionPath (const PMPathPointList &path)=0 |
| virtual bool | CanSetAnimationMotionPathFromSelection () const =0 |
| virtual bool | SetAnimationMotionPathFromSelection ()=0 |
| virtual bool | CanUpdateAnimationMotionPathFromSelection () const =0 |
| virtual bool | UpdateAnimationMotionPathFromSelection ()=0 |
| virtual bool | GetTotalNumFrames (uint32 &numFrames) const =0 |
| virtual bool | GetNumKeyFrames (const PropertyType &propType, uint32 &numKeyFrames) const =0 |
| virtual bool | GetKeyFrame (const PropertyType &propType, int32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetValueAtKeyFrame (const PropertyType &propType, uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetKeyFrame (const PropertyType &propType, uint32 keyframe, const PMReal &value=0)=0 |
| virtual bool | RemoveKeyFrame (const PropertyType &propType, uint32 keyframe)=0 |
| virtual bool | RemoveAllKeyFrames (const PropertyType &propType)=0 |
| virtual bool | CanSaveAnimationSettings () const =0 |
| virtual bool | SaveAnimationSettings (const PMString &newPresetName)=0 |
| virtual bool | CanSaveACopyAnimationSettings () const =0 |
| virtual bool | SaveACopyAnimationSettings (const IDFile &newPresetFile)=0 |
| virtual bool | CanRemoveAnimationPreset () const =0 |
| virtual bool | RemoveAnimationPreset ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is the high level animation attribute suite for the current selection. The animation attributes are represented by one data interface, IID_IANIMATIONATTRIBUTEDATA. The settings that are allowed are:
motion preset
duration of the animation
number of time the animation plays
animation path offset
a list of keyframe properties:
motion path
opacity
rotation
scale x
scale y
Additionally, page event triggering the animation can be added or removed. Animation can be self-triggered. When it is self-triggered by roll off, the animation can bet set to play in reverse.
| anonymous enum |
Short hand to refer to first and last keyframe for the given property.
| pure virtual |
Adds animation trigger event to the selection. If there's multiple selection, the event is added for all items in the selection. If the selection already has the event, it is ignored. Animation trigger event can be one of EventTriggerType.
| triggerEvent | is the animation trigger events to apply to the selection. |
| pure virtual |
Apply the spcified motion preset to the current selection.
| presetRef | is the preset to apply |
| pure virtual |
Checks if animation can be applied to the selection.
| pure virtual |
Checks if motion preset can be applied to the selection.
| pure virtual |
| pure virtual |
Returns true if animation can be reversed for the specified trigger event in the selection.
| triggerEvent | is the animation trigger events to reverse animation. |
| pure virtual |
This is possible only if there's an unique selection. Otherwise returns false if multiple selection.
| pure virtual |
Return true if can save current page item animation settings. This is possible only if there's an unique selection. Otherwise returns false if multiple selection.
| pure virtual |
Sets animation path in the selection. There must be two items selected. If one item has animation applied, it is removed and the path geometry PMPathPointList from the other is used. If there's an existing path, the old path is removed first. If neither item has animation applied, the top item is used as the source for apply motion to the other item.
| pure virtual |
Determine if animation motion path be be updated. There must be a motion path item selected.
| pure virtual |
Gets the current animate option from the selection
| animateOption | is the current animate option. |
| pure virtual |
Gets animation duration in the selection.
| duration | is the animation duration. |
| pure virtual |
Get page item hidden after setting.
| hideAfter | is the page item hidden after animated setting. |
| pure virtual |
Get page item hidden initially setting.
| hideInitially | is the page item hidden initially setting. |
| pure virtual |
Gets animation motion path in the selection
| path | is the motion path. |
| pure virtual |
Gets animation motion path in the selection
| path | is the motion path is a list of path points. |
| pure virtual |
Gets number of times animation plays in the selection.
| numPlays | is the number of times the animation plays. |
| pure virtual |
Get the animation's loop setting.
| playsLoop | is true if animation is set to loop in the selection. |
| pure virtual |
Gets animation transform offset point in the selection
| offsetPoint | is the animation transform offset point. |
| pure virtual |
Get the applicable trigger events for the current selection.
| applicableList | is the list of applicable trigger events that can be assigned for the current selection (excluding button events). |
| pure virtual |
Return the name of the app preset applied. If mixed selection, an empty string is returned.
| the | name of the app preset applied before custom settings. |
| pure virtual |
Gets animation property nth keyframe and value in the selection.
| propType | is the property to get |
| which | is the nth keyframe. |
| keyframe | is the keyframe returned. |
| value | is the value at keyframe. |
| pure virtual |
Gets the motion preset UID applied to the selection.
| pure virtual |
Get name of page item Note that this is the same as setting name through IPageItemNameFacade.h
| name | is the page item name returned. |
| pure virtual |
Gets nth animation trigger event in the selection. Trigger events can be one of EventTriggerType.
| which | is the index in then event triggers list. |
| triggerEvents | is the event trigger to get. |
| pure virtual |
Gets the number of event triggers.
| numTriggers | is the number of event triggers for this selection. |
| pure virtual |
Gets number of keyframes for the animation's property.
| propType | is the property to get |
| numKeyFrames | is the number of keyframes. |
| pure virtual |
Returns whether or not the animation is reverse for the trigger event in the selection.
| triggerEvent | is the animation trigger events to reverse animation. |
| canbeReversed | is true if event support reversed animation. |
| pure virtual |
| pure virtual |
Gets the current simple ease type from the selection
| easeType | is the current simple ease type. |
| pure virtual |
Gets total number of frames for the duration of animation.
| numFrames | is the total number of frames. |
| pure virtual |
Gets animation property value at the specified keyframe in the selection.
| propType | is the property to get |
| keyframe | is the keyframe. keyframe can also be set to either kFirstKeyFrame or kLastKeyFrame. |
| value | is the value at keyframe. |
| pure virtual |
Return true if one of more items in the selection have animation applied.
| pMixed | if not nil is set to true if mixed selection. |
| pure virtual |
Returns true if selection has custom animation settings applied.
| pMixed | if not nil is set to true if mixed selection. |
| pure virtual |
Returns true if selection can be a target of an MSO state timing manager.
| pMixed | if not nil is set to true if mixed selection. |
| pure virtual |
Returns true if current selection contains multiple selections.
s
| pure virtual |
Removes all animation property keyframes in the selection.
| propType | is the property to remove. |
| pure virtual |
Remove the animation preset associated with the current selection from the preset list and remove animation settings from the current selection. If multiple selection, animation is removed from all items in the selection.
| pure virtual |
Remove animation trigger events from the selection. If there's mulitple selection, the event is removed for all items in the selection. If the selection does not have this event, it is ignored. Animation trigger events is one of EventTriggerType.
| triggerEvent | is the animation trigger events to remove from the selection. |
| pure virtual |
Removes animation property value at the specified keyframe in the selection.
| propType | is the property to remove. |
| keyframe | is the keyframe to remove. keyframe can also be set to either kFirstKeyFrame or kLastKeyFrame. |
| pure virtual |
Save a copy of the current selection animation settings as a preset file.
| pure virtual |
Save current selection animation settings and reload as preset.
| pure virtual |
Sets the animate option for the selection.
| animateOption | is animation options to set. |
| pure virtual |
Sets animation duration in the selection.
| duration | is the new duration to apply to the selection. |
| pure virtual |
Set the flag to true if page item should be hidden after animated.
| hideAfter | is true if hidden after animated. |
| pure virtual |
Set the flag to true if page item should be hidden until animated.
| hiddenUntilAnimated | is true if hidden until animated. |
| pure virtual |
Sets animation path in the selection. It will not be possible to set animation path when there's multiple items in the selection.
| path | is the animation path to apply. |
| pure virtual |
Sets animation path in the selection. The path is set evenly over the duration. If there's an existing path, the old path is removed first. It will not be possible to set animation path when there's multiple items in the selection.
| path | is the animation path to apply. path is specified as a list of path points. |
| pure virtual |
Sets animation path in the selection. There must be two items selected. If one item has animation applied, it is removed and the path geometry PMPathPointList from the other is used. If there's an existing path, the old path is removed first. If neither item has animation applied, the top item is used as the source for apply motion to the other item.
| pure virtual |
Sets number of times the animation plays in the selection.
| numPlays | is the number of times animation plays to apply to the selection. |
| pure virtual |
Sets animation to loop for the current selection.
| setToLoop | is true if to set animation to loop. |
| pure virtual |
Sets animation transform offset point.
| offsetPoint | is the animation offset point to apply. |
| pure virtual |
Sets animation property value at the specified keyframe in the selection.
| propType | is the property to set |
| keyframe | is the keyframe. keyframe can also be set to either kFirstKeyFrame or kLastKeyFrame. |
| value | is the value at keyframe to set. |
| pure virtual |
Set name of page item Note that this is the same as setting name through IPageItemNameFacade.h
| newName | the new page item name to set. |
| pure virtual |
Set animation to reverse for the trigger event in the selection.
| triggerEvent | is the animation trigger events to reverse animation. is true if to reverse animation. |
| pure virtual |
Set to true if to show a proxy for end of animation in the layout window when object is selected. This is a document view setting and not a selection based setting.
| turnOn | is true is to show a proxy. |
| pure virtual |
Sets the simple ease type for the selection.
| easeType | is ease type to set. |
| pure virtual |
Updates animation path in the selection. There must be a motion path item selected. The motion path's path geometry is used to generate a PMPathPointList and then update the main item. User is still left in motion editing state with motion item selected.