Class EffectParameters (PowerPoint VBA)

The class EffectParameters represents various animation parameters for an Effect object, such as colors, fonts, sizes, and directions. To use a EffectParameters class variable it first needs to be instantiated, for example


Dim eps as EffectParameters
Set eps = ActivePresentation.SlideMaster.TimeLine.MainSequence(1).EffectParameters

Amount

Returns or sets a Single that represents the number of degrees an animated shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation.


ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).EffectParameters.Amount = -90

Color2

Returns a ColorFormat object that represents the color on which to end a color-cycle animation.


Dim cftColor2 As ColorFormat
Set cftColor2 = ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).EffectParameters.Color2

Direction

Determines the direction used for an animation effect. This property can be used only if the effect uses a direction. Here you can find possible values for MsoAnimDirection.

The value of the Direction property can be one of these MsoAnimDirection constants.


ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).EffectParameters.Direction = msoAnimDirectionAcross

FontName

Returns or sets the name of the font in the specified WordArt.


ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).EffectParameters.FontName =

Relative

Determines whether to set the motion position relative to the position of the shape.

This property is only used in conjunction with motion paths. The value of the Relative property can be one of these MsoTriState constants.


ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).EffectParameters.Relative = msoTrue

Size

Returns or sets the character size, in points.


ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).EffectParameters.Size = 24