Move Roof to Top in Dynamic Components
-
Hi All,
I am looking to build a building that allows a user to scale the building, specifically in the Z axis, which will move the roof component to the top of the copied floor components. I have the floor as a component, with the roof as a child component within the floor. I am getting close, but the roof floats above the floors when I scale the floor to add floors. I feel it is something really easy, assuming with the position Z, but I can't seem to figure it out.
Any help would be appreciated.
Thanks....


-
Hi
try for Roof Z=if(FloorPart!Copies>0,int(FloorPart!Copies)*300,0)+300
although copies reads 0, its actual value is different, ie 2000/3000-1 = -0.333333, not 0 as shown, therefore need to make integer and protect against negative
also make sure of the position of the roof component axis (right click to place whilst edit) to achieve desired outcome
cheers
Philip -
Thank you Phillip, I will give that a try.
Cheers,
Ryan
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement