I have modeled a bank of drawers and am trying to move a drawer box and drawer face 24" in Y direction onClick and 24" back to its original location with the second click. I have some experience with Dynamic Components and usually don’t have the issues I was experiencing today.
The components are nested, the cabinet box, drawer boxes, and drawer faces are all in one component. Double clicking enters into it, from there I can isolate the cabinet box, or isolate the drawer box and drawer face. Double clicking again I can isolate the drawer face from the drawer box.
I am trying to have the component containing the drawer box and nested drawer face move. I have played around with moving the axes to different locations, when I do, it shows my Y position as 0 which is nice and what I would want.
I write into the component attributes for the drawer box and nested drawer face: onClick(Animate"Y",24,0)
You’d think the drawer box and drawer face would move when clicked the 24" in Y and with second click go back to its orignal position. However, some weird stuff happens.
First off, when I exit the nested components and go back to looking at the whole model, my Y position value changes, which I don’t understand. Additionally, when I do the onClick function, the drawer box and face move together, but never 24" out and 24" back in. It jumps the opposite direction I want it to go, and then on the next click, even further backward, and never returns to its original location.
I have a feeling there is something I am missing about where to place the axes for the component, or maybe where the model is sitting in Sketchup space overall. An answer here would be very much appreciated. Thank you!