PDA

View Full Version : msoAnimEffectMediaPlayFromBookmark



manu_79
10-06-2012, 03:03 AM
hello,

there are no documentation about msoAnimEffectMediaPlayFromBookmark or a example with that enum in MSDN. Can someone tell me how can msoAnimEffectMediaPlayFromBookmark be used?

I think for example: ActiveWindow.View.Slide.TimeLine.InteractiveSequences.Add.AddTriggerEffect( mediaShape, msoAnimEffectMediaPlayFromBookmark, msoAnimTriggerOnShapeClick, clickShape, "Bookmark A", MsoAnimateByLevel.msoAnimateLevelNone)

I tried with "Bookmark A". It works. But it is not working with "Bookmark B" or another bookmark! Where can I set a specied bookmark for msoAnimEffectMediaPlayFromBookmark. I suspect, Bookmark as String (name of bookmark) into methods addTriggerEffect is meant only for trigger and is not meant for effect. Right?

Thanks.

Manu

John Wilson
10-06-2012, 08:17 AM
Shyam has some stuff here
http://skp.mvps.org/2010/ppt002.htm

manu_79
10-06-2012, 09:35 AM
Thank you. But I didn't find msoAnimEffectMediaPlayFromBookmark. Only msoAnimTriggerOnMediaBookmark! Right? I think addTriggerEffect works only with TriggerBookmark and does not with EffectBookmark, or?

Manu

John Wilson
10-13-2012, 12:35 PM
As far as I know it should be OnMediaBookmark (The help files can be wrong!)

To animate a shape from a media bookmark try
Sub trig()
Dim osld As Slide
Dim oshp As Shape
Dim oeff As Effect
Dim oshpmovie As Shape
Set osld = ActivePresentation.Slides(1)
Set oshpmovie = osld.Shapes(3)
Set oshp = osld.Shapes(4)
Set oeff = osld.TimeLine.InteractiveSequences.Add.AddTriggerEffect(oshp, msoAnimEffectPathCircle, _
msoAnimTriggerOnMediaBookmark, oshpmovie, "Bookmark 2")
End Sub