Вы находитесь на странице: 1из 1

Nodes are the building blocks of a Dynamo graph or program.

Therefore, placing and working with


nodes is a large part of the workflow. In this example, there are some nodes already placed in the
workspace. When nodes are placed in the workspace, you can select them in order to move
them. You can click anywhere on the node, except for a port, to select it. When a node is selected, it
is highlighted in blue. You can also use a window selection to select multiple nodes. When a node is
selected, you can click and drag it to move it. But once again, when you click a port, a connector will
be created. You can also move multiple nodes at once, as long as they are all selected. The majority
of nodes will have one or more input ports and an output port. Some nodes do not contain any input
ports, but there is typically at least one input port and one output port. The input port is on the left
and the output port is on the right. The information essentially flows from left to right. So the
information will come into the input port. Then a function will be performed based on what the node
is. After that, information will be output from the node. You can wire nodes together with connectors
to specify the flow of information. For the addition (+) and subtraction (-) nodes, there are two input
ports: x and y. The input ports may be the same, but the information is processed differently. The
output ports are also indicated by var for variable. This can really be any data. Other output ports
can have a more specific output. Most nodes will have the input and output ports labeled to help you
understand what should be input and what will be output. Some nodes, such as Number and String
nodes, only have output ports. The information in these types of nodes is input directly into the
node. For this example, enter 4 into one of the Number nodes and 2 into the other.At this point, you
have information, but you need to connect the nodes in order for the information to be processed. To
create a connector, click the output port of the Number node with the number 4. Then click the x
input port on the addition (+) node to place the connector. Now connect the output port of the other
Number node to the y input port on the addition (+) node. When you do, the title bar of the addition
(+) node becomes dark, indicating that the node is active and the input ports are successfully
connected. Now click Run in the Execution Bar. When the information is processed, Run completed
appears in the Execution Bar. Now, it appears as though nothing has happened, but when you hover
the cursor over the addition (+) node, a tooltip appears, showing the output. Now hover the cursor
over the tooltip, and a pushpin icon appears. When you click the icon, it becomes dark and the
output remains visible, even when you move the cursor away from the node. You can hover the
cursor over the output tooltip again, and the pushpin icon reappears. Click it again if you do not want
the output to remain visible. At this point, you can connect the output port of the addition (+) node to
another node to use that information, which in this case is 6. For example, connect the output port of
the addition (+) node to the x input port of the subtraction (-) node. Then place another connector
from the output port of the Number node with the number 2 to the y input port of the subtraction (-)
node. Be aware that you can connect multiple connectors from the output port of a node. Once the
nodes are connected, click Run. After the information is processed, you can hover the cursor over
the output of the subtraction (-) node to see the data. As you can see, there are several ways you
can input information into Dynamo. The information is then processed in various ways, depending on
which nodes are used and how they are connected.

Вам также может понравиться