Hi,
I’m trying to follow along with the Primer 2 - Coding in Dynamo - Geometry with Design Script - Translation, Rotation, and Other Transformations section.
My question is why does my code produce 2 overlapping cubes? In the Primer it only shows 1.
Any help would be appreciated, thanks.
The image in the Primer isn’t actually from the code block itself. It’s just the isolated geometry to clearly show the result of the transformed cuboid.
Your code block contains the original cuboid and the transformed cuboid, which is what you’re seeing in the geometry preview. To just see the transformed cuboid you would need to hide the code block geometry and then use a new node (like Object.Identity
) for just the output of the transformed cuboid.
Another way to do this using just the code block, is to wrap the original cuboid geometry into the function for creating the transformed geometry. Right now, you have to geometries being shown because you have two geometry outputs (line 1 and line 11). If you make it so you only have a singular geometry output, you’ll only have the singular preview.
Thanks so much!