Studio Yotsuba
Back to Node List

Segment Unpack

segment_unpack

Decompose a Bezier segment (Map) into coordinate values. Promote outputs as needed.

Reviewed
Guide available

Input Ports

NameTypeDescription
Segment
segment
Map
Required
Bezier segment Map from BezierPath node

Parameters

NameTypeDefaultRangeDescription / Options
P0 X
p0_x
Int
0-9223372036854776000–9223372036854776000

Start point X coordinate

P0 Y
p0_y
Int
0-9223372036854776000–9223372036854776000

Start point Y coordinate

CP1 X
cp1_x
Int
0-9223372036854776000–9223372036854776000

Control point 1 X coordinate

CP1 Y
cp1_y
Int
0-9223372036854776000–9223372036854776000

Control point 1 Y coordinate

CP2 X
cp2_x
Int
0-9223372036854776000–9223372036854776000

Control point 2 X coordinate

CP2 Y
cp2_y
Int
0-9223372036854776000–9223372036854776000

Control point 2 Y coordinate

P3 X
p3_x
Int
0-9223372036854776000–9223372036854776000

End point X coordinate

P3 Y
p3_y
Int
0-9223372036854776000–9223372036854776000

End point Y coordinate

Overview

Decomposes a Bézier segment into eight coordinate values (the reverse of segment_pack). This low-level component extracts coordinates from an editor-drawn shape so you can inspect and process them as numbers.

Usage tips

  • Every output is an output-only parameter. Promote only the coordinates you need to output pins 📤 (having no pins initially is normal).
  • The basic flow is: promote seg_N on bezier_path to an output pin 📤 → Unpack → process selected coordinates with waveforms → segment_pack → return to bezier_path.
  • If you only need the coordinates of a point on a path, path_sample is a simpler, higher-level choice. This node is specifically for editing control points.
  • Read-only outputs use the full Int range so coordinates from any Path source are not truncated. segment_pack limits editable values and promoted inputs to -1024..1024, so out-of-range coordinates are constrained when sent back to Pack.

Related nodes

  • segment_pack — counterpart that reconstructs a segment

  • bezier_path — source and return destination for the segment

  • path_sample — simpler coordinate extraction

  • motion — animate coordinates

  • Version: 1

Parameters (output-only)

Every parameter has promotable: false, output_promotable: true. They cannot be edited with sliders or inputs; calculated values are displayed read-only.

ID Name Type Description
p0_x P0 X Int X coordinate of the start point
p0_y P0 Y Int Y coordinate of the start point
cp1_x CP1 X Int X coordinate of control point 1
cp1_y CP1 Y Int Y coordinate of control point 1
cp2_x CP2 X Int X coordinate of control point 2
cp2_y CP2 Y Int Y coordinate of control point 2
p3_x P3 X Int X coordinate of the end point
p3_y P3 Y Int Y coordinate of the end point

UI behavior

  • Node body: when parameters are expanded, each coordinate name and actual value appears as read-only purple text (no slider).
  • Inspector: displays the calculated value in a badge. The 📌/🎚️🔢🎛️ buttons are hidden.
  • Promote to an output pin (📤): add only the necessary coordinates as output pins for downstream connections.

Examples

Inspect coordinate values

  1. Promote seg_N on Bézier Path to an output pin 📤.
  2. Connect it to the Segment input of Segment Unpack.
  3. Inspect each coordinate in the node body or Inspector.
  4. Click 📤 on each required coordinate parameter to promote it to an output pin.

Coordinate-processing pipeline

  1. Bézier Path seg_N → decompose with Segment Unpack.
  2. Promote the required coordinate (for example, p0_x) to an output pin 📤.
  3. Process the coordinate with Sine Wave or another animation node.
  4. Reconstruct it with Segment Pack.
  5. Promote seg_N on Bézier Path to an input pin 📌 and return the result.

Design notes

This node uses the output-only parameter pattern (see section 10 of NODE_DEVELOPMENT_GUIDE.md). By having no fixed output ports and managing every output through parameters, it provides a clean interface where users select only the coordinates they need.

Back to Node List