I tried creating a dynamic component but it doesn’t work. This is not a surprise as I have no experience of DC or programming.
The component consists of a parent component in which two subcomponents are nested.
On the first click the red and green component should move up 100 along the Z axis - this works. On the second click the green component should rotate 90° along the X axis - this doesn’t.
My attempt to turn the green part by 90 ° is with the IF function :
if(Lala!Z=50,90,0)
In my understanding !Z refers to the Z variable in the Lala component and if the Z variable is 50 the if function should return the value 90 to rotate the green component 90° or 0° if !Z is not 50. …but it doesn’t do that.
that is the total number of steps, 50 for Z, 90 for rotation, you could vary the steps to speed or slow down an action
here’s some more and alternatives lala.skp (365.8 KB)