Hello,
Iām trying to trigger a double āonclickā animation within a dynamic component but Iām having trouble understanding relative starting positions and I canāt get the script to function properly. I can manage a single onclick without problems but once I put the 2 components into a āmasterā component, it seems to become too complex for my brainā¦
Model in question is a height adjustable electric desk. Iām trying to animate it going upwards from a default starting position of 75cm above ground plane(measured from the surface of the tabletop to (0,0,0) origin point in SU). It should travel 30cm up and stop at 105cm above the origin point.
However thereās also a second moving part, namely the middle legs, which travel 15cm instead of 30.
I have put all the axes of all moving components onto the default origin point of the 3D scene.
The 2 components work as expected on their own while I am inside the master component. However once I exit and try to trigger the animations from the outside, their positions get messed up:
If anyone could have a look or explain what Iām doing wrongly, Iād be very grateful.
I have seen several really complex onclick animations online, but the explanations are never detailed enough to recreate them.