I exported blocks from our landscaping plans to a SDF file and imported them into my model using the style rules assigning 10 or so tree/veg types by block name to the various default 3d tree/veg models (see attached). Questions:
Thanks in advance for you help. The attached snippets will be helpful.
Solved! Go to Solution.
I exported blocks from our landscaping plans to a SDF file and imported them into my model using the style rules assigning 10 or so tree/veg types by block name to the various default 3d tree/veg models (see attached). Questions:
Thanks in advance for you help. The attached snippets will be helpful.
Solved! Go to Solution.
Solved by sduffin. Go to Solution.
OK I just became a script expert - I didn't know I had it in me! To randomize heights and rotation use this script:
function Process(SOURCE, TREES) {
TREES.DESCRIPTION = SOURCE["ZSCALE"];
TREES.EXTERNAL_ID = SOURCE["FeatId"];
TREES.MODEL_ROTATE_Z = Math.random() * (360);
TREES.MODEL_SCALE_Z = Math.random() * (1.2-0.8) + 0.8;
TREES.NAME = SOURCE["BLOCKNAME"];
return true;
}
This will scale the blocks between 0.8 and 1.2 of the original size and will randomly rotate 0-360 degrees.
I did a source filtering by tree/veg type to give more control over sizing by the specific 3D model.
OK I just became a script expert - I didn't know I had it in me! To randomize heights and rotation use this script:
function Process(SOURCE, TREES) {
TREES.DESCRIPTION = SOURCE["ZSCALE"];
TREES.EXTERNAL_ID = SOURCE["FeatId"];
TREES.MODEL_ROTATE_Z = Math.random() * (360);
TREES.MODEL_SCALE_Z = Math.random() * (1.2-0.8) + 0.8;
TREES.NAME = SOURCE["BLOCKNAME"];
return true;
}
This will scale the blocks between 0.8 and 1.2 of the original size and will randomly rotate 0-360 degrees.
I did a source filtering by tree/veg type to give more control over sizing by the specific 3D model.
Can't find what you're looking for? Ask the community or share your knowledge.