The grid node doesn’t do the looping: it just gives back a list of points. The grid node provides a list of positions for the ellipse node.Ī grid with three by three columns executes the ellipse node 9 (3 x 3) times:Ī grid with ten by ten columns executes the ellipse node 100 (10 x 10) times: Connect the output of the grid node to the position port of the ellipse node.If you wonder why NodeBox does not have a “for loop” like in programming, that’s because looping is implicit: generally, if a node receives a list of data, NodeBox will execute that node for each element in the list, and give back a list with the same size. Although initially invisible, the input and output of all nodes are lists. In essence, NodeBox is a list processing machine. Here’s an overview of which output ports (on the left side) can be converte to which input ports (on the top). Not all inputs and outputs are compatible. The integer output gets converted automatically to a string for the textpath node. For example, if you connect a number to the text of the textpath, NodeBox converts the number into a string so it can be rendered as text. NodeBox automatically converts between types of ports. The background color of a node is the color of its output type. They are the primary visual building blocks of NodeBox. They contain information about curves, lines and points. They are used to specify logical conditions: whether something is enabled or visible, whether elements need to be filtered out or not, etc. Booleans are values that can be either true or false.They are used to specify color information: the fill color of an object, the stroke color of a line, etc. Colors contain red, green and blue values.They are used to specify a place in 2D space: the position of a rectangle, the scale of an object, etc. Points are two-dimensional coordinates in space.They are used wherever we need textual input: the filename of a SVG file, the lookup value for a CSV file or the text in a textpath node. They are used to specify amounts: 10 copies, 50 points, etc. Integer numbers are numbers without a fractional part.They are used to specify dimensions: the width / height of an object, the distance between two points, etc. Floating-point numbers are numbers with a fractional part.Port TypesĮach port expects a certain type of values: The values for the width and height ports come from another node. Whenever a port is connected, the port view indicates that the value for this port comes from another node: Ports are displayed both in the port view (vertically) and the network view (horizontally). The input ports are also displayed in the port view: The input and output ports of a node are displayed in the network view. A node takes data in from its inputs, processes it, and sets a value in its output port, ready to be picked up by the next node. Ports represent the inputs and output of a node. Nodes can send data to each other using their ports. You can render a node by double-clicking it. The rendered node is the one that’s displayed in the viewer. We can examine what each worker node is doing by changing the rendered node. This is also a filter node, it filters the colored rectangle node. It takes the output of the color node and changes its rotation. Finally we create a rotate node and connect it to the color node.We call it a filter node, since it filters an existing shape. This node takes the output of the rect node and changes its color. We connect a colorize node to the rect node.This node is a generator: it generates a new shape. Every step along the way can be changed and animated. They are the basic building blocks of the application.īy connecting nodes together, you create your own assembly line where a new shape goes in and a complex result comes out. In the NodeBox assembly line nodes are the workers. Warszawas assembled at FSO in the early 1950s. After he or she has done their operation, the object is passed on to the next person who does his thing. Each worker does one thing, and one thing only. NodeBox uses a different model from traditional applications such as Photoshop or Illustrator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |