Help about dynamic component in multi step

Multi dynamic.skp (143.0 KB)

Dear all kindly helper,

I don’t understand why I do the following step will get wrong…

“Component A”: Animate(“Z”,0,10)
“Component B”: Animate(“Z”,0,20)
“Component C”: Animate(“Z”,0,30)
“Component D”: Animate(“Z”,0,40)

every animate of those single component works and in their right position.

Then I group all together as a new Component “ABCD”.
Then in onclick, I input:
ANIMATE(“D!Z”,0,40);
ANIMATE(“B!Z”,0,20);
ANIMATE(“A!Z”,0,10);
ANIMATE(“C!Z”,0,30)

All get wrong position, 10 becomes 25.4, 20 becomes 50.8, etc…

Am I doing anything wrong?

The second questions is, when I already made animate of those single component
Is there other way that I can just activate their “onclick” animate,
something like,
“A!onClick+B!onClick+C!onClick+D!onClick”

Waiting for all your kindly reply.
Thank you so much

Hi @icarus1005 ,

I’m not a my Sketchup computer right now but regarding your first point, from what you described, it looks like a unit issue because 2.54 cm = 1 inch. You should look at the unit of both parent and children and make sure they are both in cm.

1 Like

Thank you very much.

I checked.
and all my unit in the file, suppost cal in mm.
so I don’t know why like this.

even those single component, start from mm.
but when all make as one component, it becomes inch…

Yes, there is a bug with conversion, text is always read as inches, so the onclick when used out of context of the level is not converted
Multi dynamic.skp (165.7 KB)

two examples, one to add conversion at parent level, other to set the 100cm at parent then have the z values reference that

Other functions to be aware of the inch values are “CURRENT” and “FACEAREA”