Dynamic Component ! Animate With Onclick?

Hello, I want to do an animation with just one click but I want to know how to do it in the components within the components how to combine the formulas,
for example, in a component models are also those components , they are all in a single component where with one click the animation starts .

thank you in advance .

If the actions are in a sequence then create a “timeline” so that at certain points a condition is true then the action(s) are started or completed.
For actions simultaneous, use semicolon between each animate, or have linked attributes
Use attributes to pass data to each level
Can you upload a model?

Or if you can edit any simple model for me just for exam.
or Give me your email to send my model .

There are already simple examples on this forum (search), so suggest you send your private model by private message or email as sent

Philip, is there any guidance available for exactly how to utilize the statement

IF(test,thenValue,elseValue)

in calling upon an animated custom attribute “timeline” value to trigger the needed actions. I believe I’ve seen others call it counter, but the label is not relevant.

Exactly how is this done? How do the logical tests read the timeline value? How are they triggered?

Consider the animate as an engine

using

animatecustom(counter,time_taken,0,0,start,end)

to takeoff values at a point

range=if(counter>=15, if(counter<25, counter-15, if(counter>25,15,0) ) )

will give a range 0 to 10 triggered at counter =15

if start = 30, end = 50, then this would not happen, so some control here

if another condition added

run = 0

if(run, range,0)

then nothing will happen unless run>0