Quick question about animating sequence on different axes



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


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…


Perfect! Thanks a lot!

Now to French class lol


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.



double hinge movement.skp (21.3 KB)

create a switch

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


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


Conditional Statements?


“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

Logical Functions is the correct term for DCs

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