S
S.Creek
Hi All,
I am trying to set two (or more) effects to a shape using c#
The problem is that even if i set up the first shape's animation
trigger to be with previous, it gets changed to after previous once i
add the second effect.
Does anyone know why?
Below is the c# code
Any examples (VB included) to add two effects to a single shape are
welcomed.
PowerPoint.Sequence objSequence = objApp.ActiveWindow .Selection
..SlideRange .TimeLine.InteractiveSequences.Add(1);
PowerPoint.Shape myShape = objApp.ActiveWindow .Selection .SlideRange
..Shapes .AddPicture (@ImagePath,MsoTriState .msoFalse ,MsoTriState
..msoTrue ,200,200,100,100);
myShape.ScaleWidth (1,MsoTriState .msoTrue ,MsoScaleFrom
..msoScaleFromMiddle );
myShape.ScaleHeight (1,MsoTriState .msoTrue ,MsoScaleFrom
..msoScaleFromBottomRight );
PowerPoint .Effect NewEff = objApp.ActiveWindow
..Selection.SlideRange[1].TimeLine .MainSequence.AddEffect
(myShape,PowerPoint.MsoAnimEffect.msoAnimEffectAppear
, PowerPoint.MsoAnimateByLevel.msoAnimateLevelNone,
PowerPoint.MsoAnimTriggerType.msoAnimTriggerWithPrevious ,1);
myShape.AnimationSettings .AfterEffect = PowerPoint .PpAfterEffect
..ppAfterEffectHideOnClick ;
NewEff = objApp.ActiveWindow .Selection.SlideRange[1].TimeLine
..MainSequence.AddEffect
(myShape,PowerPoint.MsoAnimEffect.msoAnimEffectFlashOnce ,
PowerPoint.MsoAnimateByLevel.msoAnimateLevelNone ,
PowerPoint.MsoAnimTriggerType.msoAnimTriggerOnPageClick ,2);
thanks
S.Creek
I am trying to set two (or more) effects to a shape using c#
The problem is that even if i set up the first shape's animation
trigger to be with previous, it gets changed to after previous once i
add the second effect.
Does anyone know why?
Below is the c# code
Any examples (VB included) to add two effects to a single shape are
welcomed.
PowerPoint.Sequence objSequence = objApp.ActiveWindow .Selection
..SlideRange .TimeLine.InteractiveSequences.Add(1);
PowerPoint.Shape myShape = objApp.ActiveWindow .Selection .SlideRange
..Shapes .AddPicture (@ImagePath,MsoTriState .msoFalse ,MsoTriState
..msoTrue ,200,200,100,100);
myShape.ScaleWidth (1,MsoTriState .msoTrue ,MsoScaleFrom
..msoScaleFromMiddle );
myShape.ScaleHeight (1,MsoTriState .msoTrue ,MsoScaleFrom
..msoScaleFromBottomRight );
PowerPoint .Effect NewEff = objApp.ActiveWindow
..Selection.SlideRange[1].TimeLine .MainSequence.AddEffect
(myShape,PowerPoint.MsoAnimEffect.msoAnimEffectAppear
, PowerPoint.MsoAnimateByLevel.msoAnimateLevelNone,
PowerPoint.MsoAnimTriggerType.msoAnimTriggerWithPrevious ,1);
myShape.AnimationSettings .AfterEffect = PowerPoint .PpAfterEffect
..ppAfterEffectHideOnClick ;
NewEff = objApp.ActiveWindow .Selection.SlideRange[1].TimeLine
..MainSequence.AddEffect
(myShape,PowerPoint.MsoAnimEffect.msoAnimEffectFlashOnce ,
PowerPoint.MsoAnimateByLevel.msoAnimateLevelNone ,
PowerPoint.MsoAnimTriggerType.msoAnimTriggerOnPageClick ,2);
thanks
S.Creek