Programming exit animations from VSTO

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to access and set exit animations from VSTO? I currently am
creating four text box shapes to a slide and filling them with text, "A",
"B", "C", and "D". I would like to program an animation that displays all
four textboxes, then after say 10 seconds uses an exit animation to remove
one textbox, then another, and so on. In VSTO I can easily set entrance
animations, but I can not find exit animations anywhere. If anyone knows how
please help.
 
That seems easy enough, but I think I need a bigger hint. I am writing in
C#. To do the entry effect I am writing:

slide.Shapes[2].AnimationSettings.EntryEffect =
Microsoft.Office.Interop.PowerPoint.PpEntryEffect.ppEffectFade;

slide.Shapes[2].AnimationSettings.AdvanceMode =
Microsoft.Office.Interop.PowerPoint.PpAdvanceMode.ppAdvanceOnTime;

slide.Shapes[2].AnimationSettings.AdvanceTime = 2.5F;

How would I add the .exit = mso.true to the specific Shape object?
 
Hi John,

You need to use the new TimeLine object introduced with PowerPoint 2002. You
can access the TimeLine through the Slide object. More information about
TimeLine object can be found at http://skp.mvps.org/ppttimeline1.htm

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

John Harding said:
That seems easy enough, but I think I need a bigger hint. I am writing in
C#. To do the entry effect I am writing:

slide.Shapes[2].AnimationSettings.EntryEffect =
Microsoft.Office.Interop.PowerPoint.PpEntryEffect.ppEffectFade;

slide.Shapes[2].AnimationSettings.AdvanceMode =
Microsoft.Office.Interop.PowerPoint.PpAdvanceMode.ppAdvanceOnTime;

slide.Shapes[2].AnimationSettings.AdvanceTime = 2.5F;

How would I add the .exit = mso.true to the specific Shape object?


John Wilson said:
To create an exit just add the property .exit=msotrue to your entrance
animation
--
Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
 
Ok, one step closer. By using the timeline I've now got my exit animations.
The final problem is how to figure out how to set the time interval for the
animations. I want the animations to use the "medium" speed, and occur at 5
second intervals. So A-D appear on the slide, 5 seconds later 1 of them does
an exit animation, 5 seconds later the next, etc.

How do I set the animation speed and interval from the Timeline object?

Chirag said:
Hi John,

You need to use the new TimeLine object introduced with PowerPoint 2002. You
can access the TimeLine through the Slide object. More information about
TimeLine object can be found at http://skp.mvps.org/ppttimeline1.htm

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

John Harding said:
That seems easy enough, but I think I need a bigger hint. I am writing in
C#. To do the entry effect I am writing:

slide.Shapes[2].AnimationSettings.EntryEffect =
Microsoft.Office.Interop.PowerPoint.PpEntryEffect.ppEffectFade;

slide.Shapes[2].AnimationSettings.AdvanceMode =
Microsoft.Office.Interop.PowerPoint.PpAdvanceMode.ppAdvanceOnTime;

slide.Shapes[2].AnimationSettings.AdvanceTime = 2.5F;

How would I add the .exit = mso.true to the specific Shape object?


John Wilson said:
To create an exit just add the property .exit=msotrue to your entrance
animation
--
Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


:

Is there a way to access and set exit animations from VSTO? I
currently am
creating four text box shapes to a slide and filling them with text,
"A",
"B", "C", and "D". I would like to program an animation that displays
all
four textboxes, then after say 10 seconds uses an exit animation to
remove
one textbox, then another, and so on. In VSTO I can easily set
entrance
animations, but I can not find exit animations anywhere. If anyone
knows how
please help.
 
..Timing.Duration= to set the speed
..Timing.TriggerDelayTime= to set delay
--
Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


John Harding said:
Ok, one step closer. By using the timeline I've now got my exit animations.
The final problem is how to figure out how to set the time interval for the
animations. I want the animations to use the "medium" speed, and occur at 5
second intervals. So A-D appear on the slide, 5 seconds later 1 of them does
an exit animation, 5 seconds later the next, etc.

How do I set the animation speed and interval from the Timeline object?

Chirag said:
Hi John,

You need to use the new TimeLine object introduced with PowerPoint 2002. You
can access the TimeLine through the Slide object. More information about
TimeLine object can be found at http://skp.mvps.org/ppttimeline1.htm

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

John Harding said:
That seems easy enough, but I think I need a bigger hint. I am writing in
C#. To do the entry effect I am writing:

slide.Shapes[2].AnimationSettings.EntryEffect =
Microsoft.Office.Interop.PowerPoint.PpEntryEffect.ppEffectFade;

slide.Shapes[2].AnimationSettings.AdvanceMode =
Microsoft.Office.Interop.PowerPoint.PpAdvanceMode.ppAdvanceOnTime;

slide.Shapes[2].AnimationSettings.AdvanceTime = 2.5F;

How would I add the .exit = mso.true to the specific Shape object?


:

To create an exit just add the property .exit=msotrue to your entrance
animation
--
Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


:

Is there a way to access and set exit animations from VSTO? I
currently am
creating four text box shapes to a slide and filling them with text,
"A",
"B", "C", and "D". I would like to program an animation that displays
all
four textboxes, then after say 10 seconds uses an exit animation to
remove
one textbox, then another, and so on. In VSTO I can easily set
entrance
animations, but I can not find exit animations anywhere. If anyone
knows how
please help.
 
There is this Timing object and its TriggerDelayTime property for Effect and
AnimationBehavior objects. If you want an animation to start 5 seconds after
another animation, you need to set it to start "after previous" through
TriggerType property of Timing object.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
Thanks guys. You've pulled me out of a ton of dead-end searching. I've got
it working great now.
 
Back
Top