I wante to add some tree textures around my model to create forest. I decided to add the texture to cylinders or pipes 10m high.
Normally when the cylinder is not in component and I need to copy it I duplicate it using move tool and move it up +20m. Then I rescale every circle of the cylinder down by 0.98. Then I move the cylinder down -20m. This way I copy the cylinders to be a bit smaller than the previous one. But now I decided to add the cylinder to component.
When it is in component, I cannot rescale it as in the previous example. If I would rescale so the height of the cylinder would be samaller (0.98*10). Hence the trees would be smaller. This is not what I want.
So I need to set the dimensions on horizontal plane to scale it, excluding z axis. Any idea how to do it?
Create a transform for scaling (i.e., scale = Geom::Transformation.scaling(0.98,0.98, 1)) and apply it to the instance of the component you’ve created (i.e., componentinstance.transform!(scale))
This will change the definition itself, so that all of its instances will then change to match…
Where you have set: definition=componentinstance.definition