Question from dynamo primer

I am still trying to understand design script.

I’m having a look through the dynamo primer.
On this page https://primer.dynamobim.org/05_Geometry-for-Computational-Design/5-6_solids.html there’s a script to dl which includes this codeblock:

Lines 1 and 2 - Set out the U and V coordinates.
Line 3 - tells dynamo to make points (where the UV lines cross)?

I don’t understand what the numbers in brackets are for <1> <2> etc.
Can someone explain?

Line 4 - The normal is the tangent to the point so it’s creating these.

Line 5 - Telling the points to move (translate).

Line 6 - creating a vector in the opposite direction from the normal

Line 7 - creating the endpoint using this vector

As well as the <2> bits can anyone fill in anything I’ve missed / got wrong please. :slight_smile:

Lacing with nodes is somewhat different from lacing with code block. With nodes, the user right clicks on the node and selects the lacing option to perform. With code block, the user has much more control as to how the data is structured. The code block shorthand method uses replication guides to set how several one-dimensional lists should be paired. Numbers in angled brackets “<>” define the hierarchy of the resulting nested list: <1>,<2>,<3>, etc.

from: https://primer.dynamobim.org/07_Code-Block/7-2_Design-Script-syntax.html

2 Likes

These are Replication Guides.
Refer to this section from a relatively old but still relevant manual
ReplicationGuides.pdf (246.0 KB)

Normal can be visualized as a line perpendicular to a surface at the specified point (on the surface). Not tangential.

2 Likes

Ah, yea, thanks! Sorry, wrong word. I meant perpendicular not tangent! Can I blame it on Monday morning please :expressionless:

2 Likes