MatterCAD
Sign in

Send feedback about the website

Sign in
Help topics

Node Graphs

A node graph lets you build a part by wiring boxes together instead of stacking operations in the scene tree. To the rest of your design it is just an object: it has one row in the scene tree, you move, colour, export and undo it like any other part, and its settings show in the Properties panel. The only difference is the Show Graph switch, which opens its graph under the 3D view.

Use a node graph when you want to turn a few parts into one tool with a handful of settings - a bracket with a Width and a Hole Size, say - that you can reuse and share.

The node editor open under the 3D view: a Box node wired through an Outline Path node to the Output node, each card readable, the outlined box above

Start a Graph

  1. Select one or more parts.
  2. Click Convert to Nodes on the toolbar (next to Group and Ungroup).

The selection becomes one object named Geometry Nodes, and its graph opens. Each part you selected is a node, wired to the Output, so the object looks exactly as the parts did.

Show and Hide the Graph

Select the object and turn Show Graph on or off in the Properties panel. With it off you still use the object's settings, you just don't see the wiring. The choice is saved with the design.

The Node Editor

  • Input (on the left) holds everything that comes into the graph: its settings (parameters), the objects it works on, and the Scene and Parameters sockets used by formulas.
  • Output (on the right) is what the object shows. Whatever you wire into it is the result.
  • Cards are the nodes in between. Each card is an object - a shape, an operation, a sheet - and shows the same settings the Properties panel would. Click a card to select it; drag its title bar to move it.
  • Sockets are the dots on a card's edges: inputs on the left, outputs on the right. Their colour says what they carry - green for solids, blue for paths, grey for numbers, lilac for yes/no values, indigo for positions and sizes (an X, Y and Z together), orange for 3D curves, plum for images, lime for copies, pink for Variables. A single number or yes/no is drawn as a short bar instead of a dot. Hover a socket to see its name.
  • Diamond sockets are selections: they carry an answer for each edge or corner, not one value. See Choose Edges with Selection Nodes below.
  • Noodles are the wires. Drag from an output socket and drop on an input socket of the same colour to connect them. To move a noodle, pick it up by the end at its input and drop it somewhere else; drop it on empty space to remove it. A noodle that would make a loop is refused, and so is one between sockets that don't match - the editor tells you why, for example Types don't match: geometry into image. A noodle carrying a selection is dashed; a plain value wired into a diamond socket stays solid.

Scroll the mouse wheel to zoom, and drag with the right or middle mouse button to pan.

Add and Delete Nodes

  • Press Shift+A, or right-click on empty space, to open the Add Node menu at the pointer. It lists Shapes, 2D Shapes, Image (Image, Transparency Mask, Intensity Mask, Color Mask, Palette, Mask From Field, Pixel Info, Analyze Picture and Trace Mask), Operations, Math (Separate XYZ, Combine XYZ, Math, Map Range, Vector Math, Boolean Math and Time), Copies (Line Copies, Circle Copies, Step Copies, Curve Copies, Adjust Copies and Place on Copies), Sheet, Selection (Position, Compare and Inside Box), Flow (Switch and For Each) and My Tools; type to search. The node you pick lands at the pointer, unwired and selected. If a node is selected and the new one can take its result, the new node goes in after it instead - to its right, wired to it and to whatever it fed - so picking Linear Extrude with a Circle selected gives Circle -> Linear Extrude -> Output.
  • Drag a noodle from a socket and let go on empty space to open the Add Node menu there. It lists only the nodes that can take that noodle, and the one you pick lands wired to it.
  • With a graph shown, the toolbar's operation buttons add a node to the graph you are looking at.
  • Drag an object from the scene tree onto the editor to move it into the graph, or drag an item from the Library to add a copy.
  • To delete a node, select it and press Delete or Backspace, or right-click its card and choose Delete Node. Its noodles go with it. Input and Output can't be deleted.

Every one of these is a single undo step.

Operations as Nodes

Most toolbar operations are also nodes. Wire a shape or an outline into an operation's Source and wire its Result on to the next node or the Output. A few operations have their own inputs:

  • Translate, Rotate, Scale and Fit to Bounds take whatever you wire in, solid or outline, and give back the same kind of thing, so Circle -> Translate -> Linear Extrude works. Rotate turns the parts about their own centre, Scale grows them from their bottom centre, and Fit to Bounds fits them in a box centred on them - so the node keeps working when what is wired in changes size or moves. Wire a parameter into a Scale's Width, Depth or Height to size the part to that number.
  • Subtract has a Keep input (the parts that stay) and a Remove input (the parts cut out of them). Subtract & Replace has Keep and Replace: the Replace parts are cut from the Keep parts and left in the hole. Switching a node between the two keeps its noodles.
  • Loft has one Sections input that takes as many outlines as you like. They are stacked by height, lowest first, so the order you wire them in doesn't matter. To raise a section, wire it through a Translate first.
  • Sweep has a Profile (the outline to carry) and a Rail (the path to carry it along). Only a 3D Curve's result - the orange socket - fits the Rail. With nothing wired into the Rail, the sweep follows the S-shaped rail it was made with.
  • Image to Path takes a picture through its plum Source socket. Drag an image from the Library or the scene tree into the graph and wire its result there; Image to Path traces the outline, which you can then wire into Linear Extrude like any other outline. Only an image fits this socket. Dragging the Library's Image Converter into a graph adds the whole Image Converter as one card, a graph inside your graph, with its settings on the card.
  • Border Path (Add Node > Operations) adds a Border card that works like the Border on the toolbar: wire a sketch into its Source, pick None, Rectangle, Circle or Outline on its tabs, and it shows only that shape's settings (the others stay on the card, dimmed). It is built from nodes: click Open on its card, or double-click the card, to see Bounding Rectangle, Bounding Circle and Offset Path -> Switch, the Switch passing on the shape the tabs pick, and rewire them to draw another shape. None draws nothing. Its Source takes several sketches, one noodle each, and draws round them all, as the toolbar's Border does round everything selected.
  • Bounding Rectangle, Bounding Circle and Offset Path (Add Node > Operations, right after Border Path) are the three shapes a Border draws, as nodes of their own. Wire outlines into their Source, one noodle each: a second noodle goes in beside the first rather than replacing it, as a Combine's Source takes several parts. Each gives exactly the outline a Border of that shape draws round the same outlines (on the toolbar, a Border made with all of them selected), and its Result wires on like any outline, so Text -> Offset Path -> Linear Extrude makes a raised plate the shape of the words.
  • Bounding Rectangle gives the rectangle round them, reaching Expand past them on every side, its corners rounded by Radius in Segments steps.
  • Bounding Circle gives the circle round them, reaching Expand past them. Centering puts its centre where most of the shape is (Weighted) or in the middle of the shape's extents (Bounds).
  • Offset Path grows the outlines by Expand (a negative Expand shrinks them), with Style setting the corners, and fills gaps and inside corners narrower than twice its Infill.
  • Drop Small Loops (Add Node > Operations, right after Offset Path) removes islands and fills holes smaller than its Min Surface Area, in square millimetres, from the outlines wired into its Source, one noodle or several. Open lines are left alone, and when there is only one loop it is always kept.
  • Bounds takes parts in and gives back a box that fits them, plus the box's Min, Max, Size and Center as values (see Values Between Nodes below).
  • Fillet and Chamfer as nodes round (or cut) every sharp edge of what is wired in, since a card has no 3D view to click edges in. Fed an outline, they round every corner. To round only some, wire a selection into their Selection diamond (see Choose Edges with Selection Nodes below). Unchecking Selection, with nothing wired in, rounds none. The toolbar's Fillet and Chamfer still round only the edges you click.
  • Set Color colours whatever is wired into it with its Color, and the part shows that colour whatever colours its own pieces have. Wire a Color Mask's First Color (the first colour ticked on its card) or Background Color into it to colour a part from the picture, as Colour Layers (Nodes) colours each layer.

Values Between Nodes

Some nodes give values as well as, or instead of, a part: a Bounds gives its Min (low corner), Max (high corner), Size and Center, and a Measure Tool gives its Distance. Wire one of these outputs into a setting on another card and the setting follows it every time the graph rebuilds. The card shows the value the last rebuild worked out, in your units.

Min, Max, Size and Center are each an X, Y and Z together (the indigo socket). To use just one number:

  • Separate XYZ (Add Node > Math) splits a position or size into its X, Y and Z. For example, wire the Bounds' Size into Separate XYZ's Vector and its Z into a Cube's Height to make the cube exactly as tall as the parts in the Bounds.
  • Combine XYZ does the reverse: three numbers in, one position or size out.
  • In a formula, add the letter: =Bounds.Max.Z is the top of the Bounds box, and =Bounds.Size.X its width. Inside a graph, wire the Bounds card's Variables socket to the card whose formula reads it, as for any formula (see Formulas Inside a Graph below).

Math and Vector Math

Math (Add Node > Math) works out a number from two numbers, A and B. Pick what it does on its card: Add, Subtract, Multiply, Divide, Power, Minimum, Maximum, Modulo, Absolute, Round, Floor, Ceiling, Square Root, Sine, Cosine, Tangent or Clamp. Sine, Cosine and Tangent take A as an angle in degrees, and Clamp keeps A between B and Max. Type A and B on the card, or wire values into them, and wire its Result into any setting on another card - a Cube's Width, say, or a Compare's B.

Map Range takes a Value from one range to the same place in another: half way from From Min to From Max gives half way from To Min to To Max. Give a range high to low to turn it round - To Min 1 and To Max 0 make a brightness from From Min to From Max into a fade from full to none. With Clamp on, the Result stays between To Min and To Max; off, a Value outside the From range carries on past the To range at the same rate. Set Interpolation to Stepped to make the Result snap down to the step below, Steps steps across the range: 4 steps over 0 to 1 give 0, 0.25, 0.5 and 0.75, and 1 only once the Value reaches From Max. When From Min and From Max are the same, or Steps is not above 0, there is no range to map, so the Result is To Min and the card says what to change.

Vector Math does the same for positions and sizes (an X, Y and Z together). Its operations are Add, Subtract, Multiply, Scale (A times the number Scale), Length, Distance, Dot, Cross, Normalize, Minimum and Maximum. Operations that give a position or size come out of Vector; Length, Distance and Dot give a single number, which comes out of Value.

Boolean Math works with yes-or-no values: And (yes when both A and B are), Or (yes when either is), Not (the opposite of A) and Xor (yes when exactly one is).

All of these also work edge by edge: wire a selection's values into them (see Choose Edges with Selection Nodes below) and they answer for each edge.

Math and Vector Math follow what you feed them. Fed a position or a size (a Separate XYZ's Z, say), Add, Subtract, Minimum, Maximum, Modulo, Clamp, Absolute, Round, Floor and Ceiling work in lengths: the numbers you type on the card are in your units and show them, and the Result is a length too, so a Compare after it reads its B in your units. Multiply and Divide keep the number you type a plain factor, so 2 stays 2 whatever units you use; a length divided by a length is a plain number. Power, Square Root, Sine, Cosine and Tangent give plain numbers. Vector Math does the same: Add, Subtract, Minimum, Maximum and Distance of a position are lengths, Multiply and Scale keep their factor plain, Length of a position is a length, and Dot, Cross and Normalize give plain numbers. Map Range's two sides each follow their own feed: Value, From Min and From Max are lengths when a length is wired into any of them, and To Min, To Max and the Result are lengths when a length is wired into To Min or To Max, so a height can be mapped to a plain 0 to 1 fade; Steps is always a plain count. Fed plain numbers (a picture's Luminance, a count), everything stays plain.

When an operation has no answer - dividing by zero, the square root of a negative number, the tangent of 90 degrees - the result is 0 and the card shows a warning saying what to change.

For example, to make a hole half the width of a part: wire a Bounds' Size through Separate XYZ, wire its X into a Math set to Divide with B at 2, and wire the Result into a Cylinder's Diameter.

Time

Time (Add Node > Math) gives a time of day as a number, so a graph can turn a clock's hands or change a part as the day goes on. Its Seconds output is the seconds since midnight: 3600 for each hour, 60 for each minute, and the seconds. Wire it through a Math node to get what you need - Divide by 3600 for hours, or Modulo 60 for the seconds of the minute.

  • With Live on (a new Time node starts that way), it follows your computer's clock and the design updates once a second. The ticking is not an edit: it adds nothing to Undo and does not mark the design as needing a save. The Hour, Minute and Second settings are hidden while Live is on, because the clock sets them.
  • A saved design keeps the moment it was saved. Opened again with Live on, it shows the current time as soon as the clock ticks.
  • Exporting a design, or adding a saved design to the bed with Add to Bed, takes the time at the moment you press the button.
  • With Live off, the node holds the time you set in Hour, Minute and Second, like any other setting. Values past the day carry on: 25 hours is a day and an hour.

Example: Hold Z to 0

Hold Z to 0 (Add Node > Examples, My Tools in the Library, or the toolbar's My Tools group once you add it there) moves a part so its lowest point sits at Z 0, the bed, however the part changes. Select a part and use the tool: the part is wrapped in the graph and comes down (or up) to rest on the bed, keeping its X and Y.

Open its graph to see how it works: a Bounds measures the part, Separate XYZ takes the Z of the Bounds' Min (the part's lowest point), a Math multiplies it by -1, and Combine XYZ makes that the Z of a Translate's Translation. Change the part inside, make it taller or move it, and the graph lowers it again.

Switch Between Branches

A Switch (Add Node > Flow) passes on one of its inputs and ignores the rest, so one graph can make several versions of a part.

  • Wire a choice parameter (a setting with a drop-down of options) into its Choose input and the Switch gets one input per option, named after it. Wire a different part into each, and the option picked in the Properties panel decides which part comes out of its Result.
  • Wire a yes/no value into Choose and the inputs are False and True.
  • With anything else, or nothing, wired into Choose, the inputs are numbered; set how many with Options, and type the number or name of the one to pass on into Choose.

Only the chosen branch is built, so a graph with many options stays quick. If Choose names no input, or nothing is wired into the chosen one, the Switch passes nothing on and its card says why.

Repeat with For Each

A For Each (Add Node > Flow) holds a graph of its own and builds it several times, once for each number from 0 up to its Count. Use it when each copy should be a little different - a row of pegs that get taller, or a stack of layers.

  • Double-click its card to open the graph inside. Its Input gives Index, the number of the run being built (0 for the first, 1 for the second, ...), and Count. Wire Index through a Math node into whatever should change from one copy to the next: for a row of cubes 10 mm apart, wire Index into a Math set to Multiply with B at 10, its Result into a Combine XYZ's X, and that into a Translate's Translation.
  • Wire the part each run makes into the inner Output, then step back out (Escape or the breadcrumb).
  • On the For Each's card, set Count (or wire a value into it) and choose how the parts come out with Combine: Keep Separate gives a group with one part per run, in order; Union joins them into one part.
  • Anything else you wire into the For Each - parameters, parts, pictures - reaches every run.

A Count of 0 gives nothing. Each run remembers what it built, so raising the Count builds only the new runs.

Lists and Ranges

A graph setting can be a list: a numbered section for each item (Layer 1, Layer 2, ...), each with its own values. Its length can follow another setting - Colors - 1 layers for a picture split into Colors colours - and items keep their values when the list shrinks and grows back.

Wire a list into a For Each's Count and it runs once per item. Each run reads its item's values through Input parameters named after the fields (Height), and two ranges over the items:

  • HeightBelow, a number field added up over the items before this one: where a layer starts.
  • TicksFromHere, a list of colours joined over this item and every later one: a layer's colours with every colour above it.

A run whose colours are all unticked masks nothing, so that item makes no part.

Example: Colour Layers (Nodes)

Colour Layers (Nodes) (Add Node > Examples, or My Tools in the Library) turns a colour picture into a stack of layers, one per colour, for printing with a filament change at each layer.

  1. Add it and pick a picture in its Image section.
  2. Set Colors to how many colours the picture has, background included. Each colour but the background gets a Layer section.
  3. In each Layer, set its Height (Layer 1 starts at 2 mm, the others at 0.4 mm) and tick the colours it prints. Layer 1 is the bottom.
  4. Create Base puts a base under the layers: set its Base Height and Base Type (Rectangle, Circle or Outline, grown by Expand).

Each layer covers its own colours and every colour above it, so it sits on solid plastic, and starts where the layer below ends.

Trace a Picture with Masks

The Image nodes split Image to Path into steps you can see and change:

  1. Add an Image (Add Node > Image) and pick its picture on its card, or drag a picture in from the Library. The Image card is the one place a picture is loaded: a card that takes a picture through a socket, such as the Image Converter's Make Mask, shows only the socket's name while a picture is wired in. An Image card wired from a picture setting on the Input card shows that setting's picture, and a picture opened on the card changes the setting, the same one the Properties panel shows; the Input card's row for a picture setting is only its name and a small thumbnail. An Image card wired from another card's picture says it is connected instead. Its Width and Height set how big the picture is, in your units (60 mm on its longer side until you change them). With Lock Proportion ticked, changing one changes the other to keep the picture's shape; untick it to stretch the picture. A number wired into Width or Height sets it the same way, and with both wired both are used as given. Everything traced from the picture follows its size. The Picture Width, Picture Height and Pixel Size outputs give its size and how wide one pixel is, to size other parts to match.
  2. Wire it into a mask. Transparency Mask keeps the picture's solid (not see-through) pixels. It is built from fields: click Open on its card, or double-click the card, to see the nodes that make it, Pixel Info Alpha -> Compare (Greater Than 0) -> Mask From Field, and rewire them to keep pixels by another rule (see Pictures as Fields below). Intensity Mask keeps the pixels whose brightness is between its Start and End, 0 (black) to 1 (white). It is built from fields too: open it to see Pixel Info Luminance -> Compare (In Range) and Map Range -> Mask From Field, which keep a band of 64 levels or fewer whole and fade a wider band from solid at Start to clear at End. Start and End hold whole levels of 255, the steps a picture's brightness comes in, so typing 0.9 shows 0.898 (level 229): the band's ends always sit on brightnesses a pixel can have. A Start above End keeps the band between them, as if you had typed them the other way round. Color Mask splits the picture into its most distinct colors and keeps the pixels nearest the colors you tick on its card, as Image to Path's Colors tab does; at first every color but the background is ticked. It is built from fields too: open it to see Palette Is Ticked -> Mask From Field (Solid). Its Colors sets how many colors the picture is split into, and its tiles, on the card and in the properties panel, tick the colors to keep. The Color Mask node in the Image Converter's Make Mask works the same way, and its Colors output lists the picture's colors. Under its settings, each mask's card shows a small black-and-white picture of the mask it makes: white where the part will be solid, black where it will be empty. Color Mask's Invert reads the picture with its light and dark swapped first, so its colors are the swapped ones. Transparency Mask has no Invert (in the Image Converter's Make Mask its Invert row is dimmed): its outline comes from the picture's transparency, which Invert doesn't change. Intensity Mask has no Invert either, because inverting swaps the picture's light and dark rather than the band: to keep the dark pixels, move the band down (Start 0, End low). The Image Converter's own Make Mask keeps its Intensity Mask with the Select Range histogram and Invert.
  3. Wire the mask into Trace Mask. It traces the mask's outline into a path, leaving out pieces smaller than Min Surface Area. Under its settings, its card shows the mask in black and white with the traced outline drawn over it in orange, so you can see which pieces it kept.
  4. Wire Trace Mask's result into Linear Extrude, or any other node that takes an outline.

The same picture at the same size traces to the same outline Image to Path gives. A picture wired straight into Trace Mask traces its solid pixels. Trace Mask's Loop Count output gives how many loops the trace found, before the small ones are left out.

Pictures as Fields

Mask From Field makes a mask from any rule you build, asked of every pixel of the picture wired into it. Wire a selection into its diamond Selection socket: the pixels it says yes to keep their colour and their own transparency, the rest are cleared, and a number from 0 to 1 keeps that share of a pixel. Turn on Solid to make every kept pixel fully solid instead, as Color Mask does: a partly see-through pixel that is at least half solid becomes solid and a fainter one is left out, while a number still keeps its share (0.5 keeps half of a solid pixel). Its card previews the mask like the other masks, and it feeds Trace Mask the same way.

Trace Mask has a diamond Selection socket of its own, so you can skip Mask From Field: wire the selection straight into it and it traces just the pixels the selection picks, exactly what the same selection through Mask From Field traces. See-through pixels stay out even when the selection picks them. With nothing wired in, Trace Mask traces every visible pixel; unchecking its Selection traces none.

Pixel Info gives what each pixel is, each output on a dashed noodle: Color (the pixel's colour), Alpha (how solid, 0 to 1), Luminance (how bright it looks, as Intensity Mask reads it), Lightness, Hue (around the colour wheel, 0 to 1), Saturation (0 grey to 1 pure colour), Pixel Position (in pixels, up from the bottom left) and Picture Size (the picture's width as X and height as Y, in pixels; half of it is the picture's middle). Feed them through Compare, Math, Map Range and Boolean Math to make the selection:

  • Pixel Info Alpha -> Compare (Greater Than 0) -> Mask From Field keeps every visible pixel, exactly Transparency Mask's mask.
  • Pixel Info Color -> Compare (Similar Color) -> Mask From Field keeps the pixels near a colour. Wire Color into Compare's Color A, click Color B on the Compare card to pick the colour to look for, and set Tolerance: 0% keeps only that exact colour and 100% keeps every colour, black and white being 100% apart. Pure red is about 5% from an orange-red, 16% from orange and 54% from blue, so 10% keeps red and the reds close to it. Clear pixels are never kept.
  • Pixel Info Luminance -> Map Range (From Min 0, From Max 0.9, To Min 1, To Max 0) -> Mask From Field fades the pixels from fully kept at black to cleared at 90% brightness.
  • Pixel Info Luminance -> Compare (In Range) -> Mask From Field keeps the pixels in a brightness band. Intensity Mask fades pixels toward the top of a band wider than 64 steps, so over a narrow band the two masks are the same and over a wide one Mask From Field keeps those faded pixels fully.

Palette splits the picture wired into it into its Count most distinct colours, exactly as Color Mask does, and shows them on its card as numbered tiles, the first tile being 1. Its outputs are Colors (the colours in the tiles' order, as text like Color Mask's), Background (the number of the tile most of the picture's edge is, 0 when the edge is mostly see-through), Background Color, Swatch, on a dashed noodle: each pixel's nearest tile number, 0 for a see-through pixel, and Is Ticked, on a dashed noodle: yes for each pixel whose nearest tile is one of the colors wired into its Ticked Colors (every tile but the background when none are), the pixels Color Mask keeps. Changing Count changes the tiles but keeps every noodle.

  • Palette Swatch -> Compare (Equal To 2) -> Mask From Field keeps the pixels of tile 2, exactly the pixels Color Mask keeps with only that tile ticked; with Mask From Field's Solid on, the mask is Color Mask's own, partly see-through pixels made solid as Color Mask makes them. Join several such Compares with Boolean Math (Or) to keep several colours.

To let the picture choose, wire it into Analyze Picture too. It gives the analysis Image to Path would pick for that picture - Transparency, Colors or Intensity - so wired into a Switch's Choose, with each mask wired into the option of the same name, it passes on the mask that suits the picture.

Copies

The Copies nodes make many copies of a part, as the Array does, with each step a node you can see and wire:

  • Line Copies gives a row of placements: Count copies, each one Offset further on, or spread evenly up to an Endpoint, or each a share of the part's size (Relative Offset, 1 puts them side by side). Set Count Method to Fit Length to get as many copies as fit end to end within a Length, from the near end of the first copy to the far end of the last: 20 mm parts side by side in a Length of 100 give five. Rotation turns each copy that much more than the one before and Scale sizes each one that much more (0.9 makes each copy a tenth smaller). With Rotation Mode at Local each copy turns in place; at Compounding the turns add up and steer the row, so it curls into arcs and spirals. With Scale Affects Offset on, the step grows or shrinks with the copies so they keep touching.
  • Circle Copies gives a ring: Count copies, or as many as fit at Angle Between, Radius from the Central Axis, all the way round or over an arc of Sweep Angle. Pick the Central Axis's plane on its tabs (XY, XZ or YZ) and turn on its Flip to go round the other way; wired from a graph's parameters, the tabs and Flip are two parameters, a choice and a switch. With Face the Center on, each copy turns with its place around the circle. Up Axis picks which axis of the part stands up before the copies go round, and Local Rotation turns every copy by the same amount about its own center.
  • Curve Copies spreads copies along a 3D Curve, or along every curve of an outline, wired into its Curve. Give a Count, or a Spacing to fit as many copies as the curve holds; an open curve gets a copy at each end, and a closed one never gets two where it starts and ends. For an outline with several curves, Per Curve puts Count copies on each; turned off, Count copies are shared out by the curves' lengths. With Align to Curve on, each copy turns so its Forward Axis points along the curve and its Up Axis points up; Local Rotation turns every copy a little more about its own center.
  • Step Copies gives copies that each move by Translation, turn by Rotation and scale by Scale along X, Y and Z once more than the one before - spirals, stairs and shrinking rows. Uniform Scale scales each step evenly on top of Scale: 2 doubles a copy's size each step.
  • Adjust Copies takes a list of copies and moves, turns and scales every one by Offset, Rotation and Scale. Turn Randomize on to add a random amount to each copy, up to Random Offset, Random Rotation and Random Scale Axes. The same Seed always gives the same copies; change it for a different mix. Skip First and Skip Last leave an end copy in place. Flip X, Flip Y and Flip Z mirror about half the copies, picked by the Seed, along that axis of their own, so a scatter of left- and right-handed parts needs only one part.
  • Place on Copies puts a copy of the part wired into its Geometry at every placement wired into its Copies. Create Single Mesh joins them into one mesh (with Merge, points closer than Distance become one). An outline wired in gives outlines out, so Circle -> Place on Copies -> Linear Extrude extrudes every copy. Wire another part into Start Cap or End Cap to use it for the first or the last copy instead, centred where that copy would be - an end piece on a rail, say.

The copies sit exactly where an Array with the same settings puts them. A Copies socket (lime) only connects to another Copies socket.

For example, wire a Cube into Place on Copies' Geometry and a Line Copies into its Copies, then wire Place on Copies into the Output: the graph shows a row of cubes, as many as Line Copies' Count.

On-screen Handles

A Handles node gives your graph a handle in the 3D view, so you can change a value by dragging instead of typing. Add an Arrow Handle from Add Node > Handles and wire a parameter from the Input node into its Value, then wire its Result on to the settings that parameter fed: the value passes through unchanged. Set Position to where the arrow starts, Direction to which way it points, and Scale to how many millimeters it moves for each 1 the value grows.

A Dial Handle turns an angle, such as a Rotate's angle or a Circle Copies' sweep: its sphere sits Radius away from Center, turned Value degrees around Axis from Start Direction (counter-clockwise looking down the axis). Drag the sphere around the circle; the angle keeps counting past a full turn instead of jumping back to 0, and an arc shows how far it has turned.

A Radius Handle sets a distance from a point, such as a Circle Copies' radius or half a cylinder's diameter: its sphere sits Value away from Center toward Direction, on a circle facing Normal. Drag the sphere toward or away from the center, and the circle grows or shrinks with it.

A Point Handle moves a point, such as a part's position or the end of a Line Copies: wire a vec3 parameter into its Value and its sphere sits at that point. Drag the sphere and the point follows the mouse across the view.

A Circle Axis (in Add Node > Copies) puts a ring's handles where the ring is. Wire the same values into its Central Axis as into the Circle Copies, and the part's center (a Bounds node's Center) into Part Center. Its Center, Normal and Start Direction then give a Radius Handle its Center, Normal and Direction, and a Dial Handle its Center, Axis and Start Direction, so the handles follow the ring onto XZ, YZ or a custom axis. Until you set the axis's Origin, the ring goes around the part's center.

A Transform Of (in Add Node > Copies) gives the transform of another object in your design, found by its Object Name (the nearest object with that name; capitals don't matter). Wire its Result into a Step Copies' Step, and each copy steps by that object's move, turn and scale instead of by Translation and Rotation. With Relative Space on it uses the object's own transform inside its group; off, its place in the world. A name that matches nothing steps by Translation and Rotation. Move the object and the copies follow the next time the graph rebuilds.

Select the graph and a sphere shows at each handle's value: along the arrow, around the dial, out from the center or at the point. Drag it to change the parameter as you watch the part follow; let go and the change is one undo step, or press Esc during the drag to put the value back. While a graph has handles, they take the place of the usual sizing handles.

A handle shows only when its Value is wired straight from a parameter, and hides while that parameter is a formula, since dragging would replace the formula. A handle inside a graph used as a node also shows on the outer graph when the card's parameter socket is wired from the outer graph's Input.

Choose Edges with Selection Nodes

A Fillet or Chamfer node rounds every sharp edge until you tell it which ones. You tell it with a selection: a question the fillet asks about each edge (or, for an outline, each corner), such as "is this edge above 5 mm?". Edges that answer yes are rounded; the rest are left sharp.

Selections travel through diamond sockets on dashed noodles. A diamond's output only goes into a diamond input - otherwise the editor says A field only goes into a diamond socket. A diamond input with a dot in it also takes a plain value, which then answers the same for every edge.

The selection nodes are in the Add Node menu's Selection group:

  • Position gives each edge's own position (for a straight edge, its middle). Wire it through Separate XYZ to test just its X, Y or Z.
  • Compare tests A against B: Greater Than, Less Than, Equal To, At Least or At Most. Choose In Range to select the edges whose A is from Min to Max - both ends count, and a Min above Max means the same range. Choose Within Distance instead to select the edges within a Distance of a Point, or Similar Color to select the pixels whose Color A looks like Color B, within a Tolerance in percent (see Pixel Info above); Tolerance is never a length. When A is a position or a size (a Separate XYZ of a Position, say), B, Min and Max are in your units and show them; when A is a plain number (a picture's Luminance, or a Math result that is no length), they are plain numbers, so a Luminance from 0.2 to 0.4 means the same whichever units you work in.
  • Inside Box selects the edges inside the box from Min to Max. An edge lying on the box's surface counts as inside.

The Math group's nodes work on selections too. Wire Position (or anything coming from it) into Separate XYZ, Combine XYZ, Math or Vector Math and its outputs turn into diamonds: they give an answer for each edge, worked out from that edge's numbers, and go on into a Compare or another Math. Boolean Math joins selections: And rounds the edges both select, Or the edges either selects, Xor the edges only one selects, and Not turns a selection round. Wired with plain values only, these nodes give plain values as before.

A Cube wired into a Fillet node, with Position, Separate XYZ and Compare (Greater Than) feeding the Fillet's Selection by a dashed noodle, and the cube above with only its top edges rounded

Example: Round Only the Top Edges

  1. Add a Cube and a Fillet node, and wire the Cube into the Fillet's Source and the Fillet into the Output. Every edge is rounded.
  2. Add Position, Separate XYZ and Compare.
  3. Wire Position into Separate XYZ's Vector, and Separate XYZ's Z into Compare's A.
  4. Set Compare to Greater Than and B to the height of the Cube's middle (10 for a 20 mm Cube sitting on the floor).
  5. Wire Compare's result into the Fillet's Selection.

Only the edges higher than the middle - the four top edges - are rounded. The upright edges stay sharp, because their middles are not higher than B.

Example: Round the Edges Inside Another Part's Box

  1. Wire the part whose edges you want to round into a Fillet node.
  2. Wire a second part - one that overlaps the corner you want rounded - into a Bounds node.
  3. Add Inside Box. Wire the Bounds' Min into its Min and the Bounds' Max into its Max.
  4. Wire Inside Box into the Fillet's Selection.

Only the edges inside the second part's box are rounded. Move or resize the second part and the rounded edges follow.

Example: Round Only the Top Edge on the Left

  1. Start from the Round Only the Top Edges example above, with a 20 mm Cube sitting on the floor and centred on the origin.
  2. Add a Math between Separate XYZ and Compare: wire Z into Math's A, set Math to Multiply with B at 2, and wire its Result into Compare's A. Set Compare's B to 20: twice the Z must be over 20, so the top edges are still the ones picked.
  3. Add Inside Box with Min at -11, -11, -1 and Max at -1, 11, 21, a box round the Cube's left face.
  4. Add Boolean Math set to And. Wire Compare into its A and Inside Box into its B, and wire its Result into the Fillet's Selection.

Only the edge that is both on top and on the left is rounded.

Example: Round the Corners on the Right of an Outline

  1. Drag a Box from the Library's 2D Shapes into the graph. Wire it into a Fillet node, and the Fillet into a Linear Extrude. Every corner is rounded.
  2. Add Position, Separate XYZ and Compare. Wire Position into Separate XYZ, and its X into Compare's A.
  3. Set Compare to Greater Than and B to an X between the left and right sides of the outline (0 for an outline centred on the origin).
  4. Wire Compare into the Fillet's Selection.

Only the corners on the right are rounded. To round the corners near one spot instead, set Compare to Within Distance and type the spot into Point.

Parameters

Parameters are the settings the object shows in the Properties panel.

  1. Show the graph.
  2. Drag from the Input node's empty socket (labelled Drag to a setting or a shape input) to a setting on any card - a Box's Width, for example.

A new parameter appears on the Input node and as a row in the object's Properties panel. Change it there and everything wired to it follows. Until you add one, the Properties panel says No parameters yet. Show Graph, then drag from the Input node's empty socket to a setting.

  • Rename a parameter by double-clicking its name.
  • Reorder parameters by dragging the grip at the left end of a row.
  • Remove a parameter by removing its last noodle; the row goes with it.
  • Add Note (beside the empty socket's hint) adds a line of text that shows among the parameters in the Properties panel. Its settings open so you can type the text straight away.
  • A parameter can hold a formula, like =A1 from a Variable Sheet or =Handle.Width from another object.
  • Other objects can read it too: =Bracket.Width reads the Width parameter of the graph named Bracket. Nodes inside a graph can't be read from outside; if you try, you see Nodes inside a graph can't be used from outside it; add a graph parameter instead.

Object Inputs

A graph can also take objects in, so it works like an operation. Drag from the Input node's empty socket to a card's shape input (the socket an operation reads its source from). This adds an object slot to the Input node. Objects you converted with Convert to Nodes are already wired in this way.

Formulas Inside a Graph

A graph is sealed: a formula inside it sees only what is wired to its card's Variables socket. If a formula names something that isn't wired, the setting shows a warning telling you which noodle to add:

  • To read another node, like =Box.Width, drag from Box's Variables socket to this node's Variables socket. Otherwise: Box isn't wired to this node. Drag from Box's Variables socket to this node's Variables socket.
  • To read the graph's own parameters, like =Input.Width, drag from the Input node's Parameters socket to this node's Variables socket. Otherwise: Input isn't wired to this node. Drag from the Input node's Parameters socket to this node's Variables socket.
  • To read objects in the scene outside the graph, wire the Input node's Scene socket to this node's Variables socket. Otherwise: ... isn't wired to this node. Wire the Input node's Scene socket to this node's Variables socket to use names from the scene.
  • A Sheet node works the same way: wire its Variables socket to each node whose formulas read its cells. A sheet has no result, so it never goes into the Output.

Save as Tool and My Tools

Right-click the object and choose Save as Tool to keep a copy you can use in any design. Tools are stored in My Tools in the Library.

  • A tool that makes a shape (no object inputs) is also added to the Favorites bar. Drag it into your design like a primitive.
  • A tool that works on objects (it has object inputs) gets a button in the toolbar's My Tools group. Select a part and click the button to run the tool on it.

Each use adds an independent copy, so changing one never changes the others. Tools also appear under My Tools in the Add Node menu.

Graphs Inside Graphs

Add a graph to another graph - from the Add Node menu's My Tools, the Library, or the scene tree - and it becomes one card. Its sockets are the inner graph's parameters and object inputs, plus a Result. A shape or outline input takes several parts, one noodle each, when everything inside that reads it can use them all (a Border, its shapes, the Output, or another graph's input that takes several): the inner graph gets them together as one group, the way an operation on the toolbar takes everything selected. Otherwise, and for a picture input, a new noodle replaces the old one. Leave an object input unwired and the inner graph keeps its own object.

To edit the inner graph, double-click its card or click Open. The breadcrumb above the editor (for example Outer > Inner) shows where you are; click it or press Escape to step back out. Changes inside affect only that copy.

Graphs can be nested up to 8 deep. Deeper than that, the graph shows Graphs can be nested at most 8 deep. Apply or remove a graph inside this one to build it.

  • Fillet - Rounding edges, and picking them in the 3D view
  • Image to Path - Tracing a picture's outline in one step
  • Bounds - A box that fits other parts, and its Min, Max, Size and Center
  • Components - Another way to show just a few settings for a group of parts
  • Expressions - Formulas in settings
  • Object References - Reading another object's settings with Name.Property
  • Variable Sheet - Shared values for a design

Back to the help index