Add Motion Path Problem

G

Gil_H

Hi,
I'm making a macro that knows to move a shape - with adding motion path
to it - to a target destination.
But when i add that motion path (with adding it to the timeline - and
then add Behaviour) it does the work, but it doesn't changes the Path
Property, so when i want to use the Path Property the string inside is
empty ( "" ) and i can\t use the other properties (such as From, To, By
) because it just doesn't correct!
Do you have any solution?
Is it possible to change the Path ( That is Read-Only ) ?
Thanx,
Gil H.
 
S

Shyam Pillai

The Motion path is not read-only. You can access and set it by changing the
behavior. Assuming that the motion path animation is the first one on the
slide. The following command with display the path.

?Activewindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Behaviors(1).MotionEffect.Path

You can assign it too in the following manner (oSld is a slide reference).

oSld.TimeLine.MainSequence(1).Behaviors(1).MotionEffect.Path = "M 0 0 L
0.25 -0.33333 E"


--
Regards,
Shyam Pillai

Animation Carbon
http://www.animationcarbon.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top