Studio Yotsuba
Back to Node List

Segment Pack

segment_pack

Compose a Bezier segment (Map) from 8 coordinate values

Reviewed
Guide available

Output Ports

NameTypeDescription
Segment
segment
Map
Composed Bezier segment Map

Parameters

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

P0 X coordinate

P0 Y
p0_y
Int
0-1024–1024

P0 Y coordinate

CP1 X
cp1_x
Int
0-1024–1024

CP1 X coordinate

CP1 Y
cp1_y
Int
0-1024–1024

CP1 Y coordinate

CP2 X
cp2_x
Int
0-1024–1024

CP2 X coordinate

CP2 Y
cp2_y
Int
0-1024–1024

CP2 Y coordinate

P3 X
p3_x
Int
0-1024–1024

P3 X coordinate

P3 Y
p3_y
Int
0-1024–1024

P3 Y coordinate

Overview

Builds one Bézier segment numerically from eight coordinates: start point, two control points, and end point. This is a low-level component for advanced users who want to drive the path shape itself with numbers or waveforms, such as swaying hair or flags.

Usage tips

  • Its counterpart is segment_unpack. The basic shape-animation loop is: unpack a segment drawn in the editor → animate coordinates with waveforms → reconstruct it with Pack → return it to seg_N on bezier_path through a promoted input pin 📌.
  • You do not need to drive every coordinate with expressions. Promote only the coordinates you want to animate to input pins 📌 and leave the rest fixed with sliders.
  • If you only want the entire shape to change over time, keyframe_clip (recording-based) is more intuitive. Segment Pack is for mathematical motion.
  • Pack's editable values and promoted inputs use the practical manual range -1024..1024. segment_unpack uses the full Int range for its read-only outputs because segments can come from other Path sources. Values outside Pack's range are constrained when connected back to Pack.

Related nodes

  • segment_unpack — counterpart that decomposes a segment

  • bezier_path — destination for the assembled segment

  • motion / expression_float — sources that drive coordinates

  • keyframe_clip — recording-based shape animation (alternative)

  • Version: 1

Examples

Combine with Segment Unpack

  1. Decompose a Bézier Path segment with Segment Unpack.
  2. Process coordinate values with Sine Wave or another node.
  3. Promote the corresponding Segment Pack parameters to input pins 📌.
  4. Connect the processed values.
  5. Connect the output Segment to the seg_N input pin on Bézier Path.

Create a segment manually

  1. Set each coordinate parameter with its slider.
  2. Connect the output Segment to the seg_N input pin on Bézier Path.
Back to Node List