Class EffectParameters (PowerPoint VBA)

The class EffectParameters represents various animation parameters for an Effect object, such as colors, fonts, sizes, and directions.

Set

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

EffectParameters class variables can be set using the Effect.EffectParameters procedure.

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.

Possible Values are msoAnimDirectionAcross - Across, msoAnimDirectionBottom - Bottom, msoAnimDirectionBottomLeft - Bottom Left, msoAnimDirectionBottomRight - Bottom Right, msoAnimDirectionCenter - Center, msoAnimDirectionClockwise - Clockwise, msoAnimDirectionCounterclockwise - Counterclockwise, msoAnimDirectionCycleClockwise - Cycle Clockwise, msoAnimDirectionCycleCounterclockwise - Cycle Counterclockwise, msoAnimDirectionDown - Down, msoAnimDirectionDownLeft - Down Left, msoAnimDirectionDownRight - Down Right, msoAnimDirectionFontAllCaps - Text is all caps, msoAnimDirectionFontBold - Bold style is used, msoAnimDirectionFontItalic - Italic style is used, msoAnimDirectionFontShadow - Shadow style is used, msoAnimDirectionFontStrikethrough - Strikethrough style is used, msoAnimDirectionFontUnderline - Underlined style is used, msoAnimDirectionGradual - Gradual, msoAnimDirectionHorizontal - Horizontal, msoAnimDirectionHorizontalIn - Horizontal In, msoAnimDirectionHorizontalOut - Horizontal Out, msoAnimDirectionIn - In, msoAnimDirectionInBottom - In Bottom, msoAnimDirectionInCenter - In Center, msoAnimDirectionInSlightly - In Slightly, msoAnimDirectionInstant - Appears Instantly, msoAnimDirectionLeft - Appears from Left, msoAnimDirectionNone - None, msoAnimDirectionOrdinalMask - Ordinal Mask, msoAnimDirectionOut - Out, msoAnimDirectionOutBottom - Moves out from the Bottom, msoAnimDirectionOutCenter - Moves out from the Center, msoAnimDirectionOutSlightly - Slightly Out, msoAnimDirectionRight - Moves to the Right, msoAnimDirectionSlightly - Slightly, msoAnimDirectionTop - Moves to the Top, msoAnimDirectionTopLeft - Moves to the Top Left, msoAnimDirectionTopRight - Moves to the Top Right, msoAnimDirectionUp - Moves Up, msoAnimDirectionUpLeft - Moves up to the Left, msoAnimDirectionUpRight - Moves up to the Right, msoAnimDirectionVertical - Moves Vertically, msoAnimDirectionVerticalIn - Moves Vertically In, msoAnimDirectionVerticalOut - Moves Vertically Out.

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 =

Parent

Returns the parent object for the specified object.

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