Returning Position of Object During Animation

P

Puck312

I have a slide where a line that moves continuously from one end of a
rectange to the other. The line is setup as continuously repeating
(until next click) move to right emphasis with auto-reverse turned
on. I'm trying to figure out if there is a way to return the position
(left) of the animated line when another shape is clicked. I can
setup the trigger but apparently the position of the line (shape
object) does not actually move during an animation because no matter
where the line is in its motion path when the trigger is clicked, the
value of the line's left property is always the same.

I'm familar with vba, but this is the first time I have tried to work
with animations in powerpoint. Is there something simple that I am
missing here?

Any help would be appreciated!!!
 
B

Bill Dilworth

Good evening Puck,

The first thing to remember in PowerPoint is that what looks the same either
is or isn't the same. LOL PowerPoint is a bit goofy if you are used to
other Office apps and VBA. Returning the shape to home position in an
animation sequence via vba is not really possible.

You are correct in that the applied animation does not change the actual
position coordinates of the object, but if you can get the appearance you
want, do you really care how it is done? You can do more with the trigger
animation than just one thing. Why not just fade out the original sweeping
line and fade in a stationary one (identical in appearance) were you want
it?

You could also cause the line sweep to run via VBA, in which case returning
it to the home position would be a snap, so to speak. But this method tends
to be a bit jerky and sometimes locks waiting on cursor movement.

Bill Dilworth
 
P

Puck312

Bill,

The final goal is to have the line bounce back and forth between the
ends of a rectangle behind it and stop in place when clicked by the
user. I was then going to use the ending position as the starting
value for some other code. Think power meter in video games: The
closer the line is to the center of the rectangle when you click it,
the further something else travels. That way the user interaction is
part of the presentation instead of just using the Rnd function and
leaving the user out. I can get the line to bounce back and forth,
it's just getting the final displayed position after the user clicks
that is the problem. I was hoping to calculate how far something else
would move base on the ending position of the line relative to its
starting position, so it's the "position" property (or some type of
equivalent) value that is important to me, not where the line is
displayed.

If you have any other ideas for how to make some type of meter like
this I'm open to any ideas.

-Puck312
 
B

Bill Dilworth

In this case, I would use VBA to bounce the line (adjusting the position).
This way you have control over it.

Bill Dilworth
 

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