Hello EVERYONE
This is Nicolas, I am using Sketchup Pro 2023 on a MacBook Pro.
I surely hope someone can help me.
I have been using Components Attibutes to open and close doors of a Closet, but I am not getting my doors to open correctly. My doors do not open in the right direction (outside) of the closet. to the right or to the left. the command I use is the following;
Door 1
ANIMATESLOW(“RotZ”,0,-90)
this command seems to be working, but the moment I try to animate a second or a third or a forth door, everything goes it own way. Yes, I did place the AXES in the correct position so that each door pivots around the Z axis, but the results are not as expected.
Any help would be greatly appreciated.
It would help to have the model
Likely you have reused the door DC without making all unique
After a copy use extension “deep make unique”
if you re trying to pivot double doors and expect one to open opposite, the animate would need to be animateslow(“RotZ”,0,90) for the second, instead of -90. and double check the green and red directions of the axis for both doors. They should be facing same way red and green, just slid over to the pivot axis for Blue.
Mark, THANK YOU.
It was such an easy solution, I must have gone blank after sitting in front of the computer for such a long time.
Again THANK YOU.
It throws me off sometimes thinking if i turn an object after setting animation variables and run the animation it flips to the original position then does the animation. I have found its a good practice to plan all the movements and set the axis for each pivot point before setting variables and animations. And best to have only one movement for each component. If you will have multiple animations in a component, add a new component layer for each animation. That way each can be directly controlled. And use variables to hold movement amounts user changeable, and pass them to the component. and I found with nested components the variable only is available 2 layers deep, so I make place holders in each layer, so the values are available for each nested layer. Glad you got it working