# Quick question about animating sequence on different axes

**URL:** <https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074>\
**Category:** Dynamic Components\
**Created:** [June 26, 2016, 8:20pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074 "2016-06-26T20:20:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murphy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/murphy/32/20075_2.png) [@Murphy](https://forums.sketchup.com/u/Murphy)\
**Post date:** [June 26, 2016, 8:20pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/1 "2016-06-26T20:20:43Z")

</div>

Hello

I’m new to the program and trying out different functions, and finding out what this program can do.

At the moment, I’m trying to recreate a window, one that can swing open along both the Z and X-axis. This is after the example of some modern windows, with a system that if you position the handle horizontally or vertically, you can open respectively.

I’m doing alright with movement across just one direction, (i.e. ANIMATE(“X”,0,50)) and I was wondering if it’s possible with a sequence to have the onclick attribute include movement on a second or several directions.

So, if one can make an object move between two positions, is it possible to navigate them into another position on another dimension, using just an onclick sequence?

i.e, for my window, hypotethically ANIMATE(“RotZ”,0,90,“RotX”,0,10)

Obviously that won’t work, and I don’t know if there’s a guide or something to whatever commands the onclick attribute responds to, but I am interested if someone can tell me where to find this so that I can learn how to use sketchup better, or explain whether it was possible at all what I currently have in mind.

Much appreciated, have a nice day

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 27, 2016, 1:16pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/2 "2016-06-27T13:16:45Z")

</div>

See previous  
How to align an animated series with attribute "oneClick. Such as: first click, the object moves, the second click, object rotation ect Thank you in advance for the answers…

> [@Question sur attribut :"oneClick"](http://forums.sketchup.com/t/question-sur-attribut-oneclick/4893):
>
> Comment faire pour aligner une succession d’animation avec attribut « oneClick. Comme par exemple : première click, l’objet se déplace, deuxième click, rotation de l’objet e.c.t. Merci d’avance pour les réponses.

---

<div class="post-metadata">

**Author:** ![Murphy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/murphy/32/20075_2.png) [@Murphy](https://forums.sketchup.com/u/Murphy)\
**Post date:** [June 27, 2016, 4:04pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/3 "2016-06-27T16:04:23Z")

</div>

Perfect! Thanks a lot!

Now to French class lol

---

<div class="post-metadata">

**Author:** ![Murphy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/murphy/32/20075_2.png) [@Murphy](https://forums.sketchup.com/u/Murphy)\
**Post date:** [June 27, 2016, 4:34pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/4 "2016-06-27T16:34:28Z")

</div>

While there seems to be a solution to this, I didn’t get from that thread whether it really worked for the other person. I’m having difficulty with the relatively complicated combinations of commands I’m otherwise entirely new to.

I need the window to do this combination, and as you may understand it’s near impossible to make it work by just guessing (and I can’t find an extensive guide on this either):

Click one: swing open 90 degrees (horizontally or Z-axis). Click two: Close.  
Click three: swing open/tilt 10 degrees (vertically or on X-axis), click three: close.

To clarify, the window should open to the interior, but that’s relatively easy to configure, the main point is getting the sequence to work. I tried to apply the example “conditional movement”, which works properly, but don’t know how to make it work for my model.

Thanks

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 28, 2016, 9:54am UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/5 "2016-06-28T09:54:00Z")

</div>

[double hinge movement.skp](https://forums.sketchup.com/uploads/short-url/wma9RzYq8WDmWyrCt92f4BfjSJ5.skp) (21.3 KB)

create a switch

onclick animate(myswitch,1,2,3,4)  
then use conditional statements

---

<div class="post-metadata">

**Author:** ![Murphy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/murphy/32/20075_2.png) [@Murphy](https://forums.sketchup.com/u/Murphy)\
**Post date:** [June 29, 2016, 6:46pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/6 "2016-06-29T18:46:58Z")

</div>

Alright, now with just that line nothing happens yet. Where do I enter the values? I still need to learn this. Thanks for understanding.

---

<div class="post-metadata">

**Author:** ![picas](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@picas](https://forums.sketchup.com/u/picas)\
**Post date:** [March 20, 2017, 11:25pm UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/7 "2017-03-20T23:25:53Z")

</div>

Conditional Statements?

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [March 21, 2017, 10:30am UTC](https://forums.sketchup.com/t/quick-question-about-animating-sequence-on-different-axes/27074/8 "2017-03-21T10:30:19Z")

</div>

“A conditional statement, symbolized by p q, is an if-then statement in which p is a hypothesis and q is a conclusion. The logical connector in a conditional statement is denoted by the symbol . The conditional is defined to be true unless a true hypothesis leads to a false conclusion.” [www.mathgoodies.com/lessons/vol9/conditional.html](http://www.mathgoodies.com/lessons/vol9/conditional.html)

Logical Functions is the correct term for DCs

from the sample, with fx button on, the IF(test,thenValue,elseValue) is used

![](https://global.discourse-cdn.com/sketchup/original/3X/2/0/202ad2d8032ed0290a5133ba74ae2621cbaf8b73.PNG)
