# Needed help dynamic components

**URL:** <https://forums.sketchup.com/t/needed-help-dynamic-components/150315>\
**Category:** Dynamic Components\
**Tags:** dynamiccomponents\
**Created:** [January 23, 2021, 11:20am UTC](https://forums.sketchup.com/t/needed-help-dynamic-components/150315 "2021-01-23T11:20:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan.s](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Daan.s](https://forums.sketchup.com/u/Daan.s)\
**Post date:** [January 23, 2021, 11:20am UTC](https://forums.sketchup.com/t/needed-help-dynamic-components/150315/1 "2021-01-23T11:20:40Z")

</div>

I would like to move a component in three clicks, first in the X-as, second click in the Z-as and the third click in the X-as. (picture)  
I have three components in total, the other two are just moving in the X-as for two or three clicks. And with the formula like in the picture it works.  
Edit; in the reply I uploaded a picture so it’s hopefully more clearly  
What do I need to change to make it work?

 ![Schermafbeelding 2021-01-22 om 23.01.43](https://global.discourse-cdn.com/sketchup/original/3X/1/8/1824338dff65aa96ce1957957bc00ef15a6b04da.jpeg) ![Schermafbeelding 2021-01-22 om 23.06.28](https://global.discourse-cdn.com/sketchup/original/3X/e/d/ed3ada8641fee259f30a14cb054a8a51034a8c5e.jpeg)

---

<div class="post-metadata">

**Author:** ![MikeWayzovski](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mikewayzovski/32/98346_2.png) [@MikeWayzovski](https://forums.sketchup.com/u/MikeWayzovski)\
**Post date:** [January 23, 2021, 11:58am UTC](https://forums.sketchup.com/t/needed-help-dynamic-components/150315/2 "2021-01-23T11:58:05Z")

</div>

please don’t double post!

> [@Need help please!](https://forums.sketchup.com/t/need-help-please/150266):
>
> I would like to move a component in three clicks, first in the X-as, second click in the Z-as and the third click in the X-as. (picture) I have three components in total, the other two are just moving in the X-as for two or three clicks. And with the formula like in the picture it works. Edit; in the reply I uploaded a picture so it’s hopefully more clearly What do I need to change to make it work?

---

<div class="post-metadata">

**Author:** ![Daan.s](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Daan.s](https://forums.sketchup.com/u/Daan.s)\
**Post date:** [January 23, 2021, 12:09pm UTC](https://forums.sketchup.com/t/needed-help-dynamic-components/150315/3 "2021-01-23T12:09:22Z")

</div>

I couldn’t delete the post from yesterday

---

<div class="post-metadata">

**Author:** ![kamambers](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kamambers](https://forums.sketchup.com/u/kamambers)\
**Post date:** [January 23, 2021, 2:04pm UTC](https://forums.sketchup.com/t/needed-help-dynamic-components/150315/4 "2021-01-23T14:04:14Z")

</div>

Here is an error in the formula syntax. You cannot include multiple attributes in one ANIMATE formula.

In the example below, each attribute (X and Z) is placed in its own formula. The last state always assigns an initial position to the attributes, in this case 0. Otherwise, the formula performs the full animation cycle only once.

 ![Cube DC XZ](https://global.discourse-cdn.com/sketchup/original/3X/1/c/1c993659212529b9ff67678d4e2c6cb2931a1672.jpeg)

1st click - **X = 10 cm** , Z = 0 cm (Initial Position does not change)  
2nd click - X = 10 cm (does not change position), **Y = 10 cm**  
3rd click - **X = 20 cm** , Y = 10 cm (does not change position)  
4th click - **X = 0 cm, Z = 0 cm** (returns to the initial position in both directions)

The performance of the formula can be evaluated in the attached file.

[DC cube XZ.skp](https://forums.sketchup.com/uploads/short-url/eFq75MiXklxALlmOiinsJpcyNDa.skp) (1014.3 KB)

---

<div class="post-metadata">

**Author:** ![Daan.s](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Daan.s](https://forums.sketchup.com/u/Daan.s)\
**Post date:** [January 23, 2021, 2:14pm UTC](https://forums.sketchup.com/t/needed-help-dynamic-components/150315/6 "2021-01-23T14:14:38Z")

</div>

Thank you for your reply, I tried it with the animator plug-in. It’s maybe not the best, but it works easier for me.

Thanks for your time en help anyway!
