Identify whether a custom animation belongs to shape or a text

S

sanilkp

Steps:
1. Insert a shape - say rectangle - on to the slide.
2. Add text into the shape [ Right click on shape and choose 'Add Text'
] - say "Text"
3. Select the shape cilcking on the shape border.
4. Apply a custom animation - Entrance - Fly In to the shape.
5. Now click on the text inside the shape and select it fully.
6. Apply custom animation - Entrance, Swivel

After doing the above steps, we will see 3 custom animation effects in
the Custom Animation pane on the right hand side of PowerPoint Editor
window[1. Rectangle 3: Shape, 2.Text, 3.Text].

We can enumerate these effects using
Application.ActivePresentation.Slides(i).TimeLine.MainSequence(i).

In the above example, 1st two effects [1. Rectangle 3: Shape, 2.Text]
belongs to the shape and the 3rd one [3.Text] belongs to the text.

Is there any way to identify whether a particular effect is applied to
a shape or a text.
 
G

Guest

If you look in effect options>text animation you will see that the text in a
shape has an option to "animate attached shape" obviously the text not
attached to a shape wont have this option!
 
S

sanilkp

Yes it is a good suggestion.
This did not solve my problem.
My question is regarding text attached to shape itself.
We can give custom animation to the shape as well as to the text
attached to the shape.
In both this case the option - "Animate attached shape" is ticked ON.
In the custom animation pane we will have two entries.
One for the shape and one for the text.

Eg:
1. Insert a rectangle shape onto the slide.
2. Right click on it. Choose Add Text command from the context menu.
Type "ABC"
3. Click on the shape border so that it will get selected.
4. Add animation - Entrance - Fade
5. Click on the text "ABC". Select the whole test.
6. Apply a custom animation - Exit - Fly out

Now we will have 3 effects in the Custom Animation pane.

1. Rectangle 3:ABC
ABC
2. ABC

ie. By serial number, there are only two effects.
But by countwise, there are 3 Effects.

We are enumerating Effects using the TimeLine.MainSequence object and
we get all these three Effects.
What we want is, by knowing the Effect name, we should identify whether
it is a text or shape.

In the above case, for item 1, both Effects Rectangle 3:ABC and ABC has
"Animate attached shape" option ticked ON.
For us the 2nd one "ABC" should be be able to identified as text.

Hope my explanations are clear. If not i am ready to answer any number
of questions .
 
S

sanilkp

Can we able to identify whether an Effect in the custom animation pane
is applied to text or a shape.
NOTE:
Even if the custom animated text is attached to a shape, we need to get
it identified as Text.
Is this possible using PowerPoint object model (XP or above)?
 
S

sanilkp

Can we identify whether an Effect in the custom animation pane
is applied to text or a shape.
NOTE:
Even if the custom animated text is attached to a shape, we need to get

it identified as Text.
Is this possible using PowerPoint object model (XP or above)?
 
S

sanilkp

Hello Shyam,

I am grateful to you. It worked. This was exactly what we required.
Thank you so much for all the help.

Sanil.
 
S

sanilkp

Hello John Wilson

My problem is solved. Shyam Pillai gave the solution.
Thank you as well for responding to my question and trying to solve the
problem.

Sanil.
 

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