Pen

Draw and edit vector paths point by point.

What it does

Pen draws a path point by point in the viewport: click to add an anchor, drag an anchor to move it, drag out a bezier handle to curve the segment either side of it. It is the hand-drawing tool for shapes no primitive covers: logos, custom UI outlines, freeform strokes, or a spine for a 3D tube.

By default Pen is an analytic shape: crisp at any zoom, composited as a flat 2D layer, with Fill and Stroke as independent style channels. If any point is lifted off the drawing plane (given depth), Pen builds a round 3D tube along the path instead, using Stroke Width as the tube radius. Turn Analytical off to tessellate the path into a Geometry mesh for the 3D scene.

When to use it

ParameterTypeDefaultWhat it does
path_dataString"{"points":[]}"Points data (edited via viewport)
construction_planeString"Camera"Plane where clicks are projected in the viewport. One of: Camera, XZ, XY, YZ.
plane_offsetNumber0Offset of construction plane from origin along its normal
closedBooleanfalseConnect the last point to the first
fillColor or Color Field or Color[] or Field or Material or Material[] or Frame Sequencergba(0.00, 0.00, 0.00, 0.00)Fill color, or connect a Fill/Color/Image node
strokeColor or Color Field or Color[] or Field or Material or Material[] or Frame Sequencergba(1.00, 1.00, 1.00, 1.00)Stroke color, or connect a Fill/Color/Image node
stroke_widthNumber2Stroke thickness in pixels
render_modeString"Path"3D path render: thin Path (flat when planar, ribbon in 3D) or world-radius Tube. One of: Path, Tube.
analyticalBooleantrueAnalytic: emit resolution-independent CRC path (composites as a flat 2D layer). Turn off to tessellate the drawn path into a Geometry mesh for the 3D scene.
strengthNumber1Effect strength / wet-dry (0 = no effect, 1 = full). Editable, wirable, keyframable.

Gotchas

Stroke is skipped entirely when Stroke Width is 0. A path that looks fill-only with no outline usually has a zeroed Stroke Width.

Fill only appears on a closed path. An open path has no interior to fill, so Fill is ignored until Closed is on.

Construction Plane and Plane Offset only affect where new clicks land in the viewport. They do not move points already placed.

Lifting any point off the drawing plane switches Pen to drawing a round 3D tube along the path, sized by Stroke Width. There is no separate 3D mode toggle.

Worked example

  1. Add a Pen node and click in the viewport to place a few anchor points.

  2. Drag out a handle on any point to turn that corner into a curve.

  3. Turn on Closed to connect the last point back to the first.

  4. Wire a Color node into Fill, and set Stroke and Stroke Width for the outline.

  5. For a 3D scene, turn Analytical off to get a mesh, or lift points off the plane to draw a 3D tube instead.

See also

Circle · Line · Connect Points · Sweep