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
Advertisement