Connectors and sliders
Link two joints with a connector and slide parts along it: carriages, pistons and zips that stay attached however you pose them.
A connector is a line between two joints of a figure, with a slider that can travel along it. Anything attached to the slider rides along: a carriage on a rail, the sleeve of a piston, a bead on a string, a zip on a jacket.
- In Build, select a joint, open Properties → Rig, click Connect, then click the second joint.
- The connector stays stuck to both joints however you pose them. Its slider sits at a Position from 0% (Anchor A) to 100% (Anchor B).
- Select the connector’s line for its Segment settings (look, bend, anchors) or its slider for Slider (Position).
The problem it solves
Ordinary parts only hang from one joint. That makes some motions very hard: a piston rod has to stay between the crank and the cylinder, a carriage has to stay on its rail. You would have to fix their position by hand on every frame. A connector is pinned at both ends, so it follows both joints by itself, and its slider gives you one number (Position) to animate.
A 30-second example
- In the playground, drag the red diamond (the slider) along the blue connector. The green carriage rides with it, and Position in Properties follows.
- Drag the red joint at the end of the right-hand grey bone (Anchor B). The connector stays attached to both ends, and the carriage stays at the same percentage.
- Click the connector, then Segment in Properties, and set Bend to 60. The slider now travels along the curve.
- Drag the red diamond along the connector.
- Type a Position in Properties.
- Drag Anchor B (the right bone’s end).
- Switch to Segment.
- Give it a Bend.
- In Rig → Anchors, pick a new Anchor A: the orange origin.
Create a connector
You need one figure with two joints in different places. (To attach two separate figures, use Join instead.)
- Open the figure in Build. Finish its shape first: set the origin and split parts before you add rig rules.
- Click the first joint. In Properties, open Rig and click Connect. (With nothing selected, the figure’s quick action Connect starts from the origin.)
- The stage header says Click the second joint to connect it. Click it. Esc cancels.
- The connector appears, selected, with its slider at 50% and a 6 px line. The app says Connector added. Drag its middle joint to slide.
- With the slider selected, draw the parts that should ride on it: they hang from the slider joint.
- Check it with Test rig: drag the slider, then move the anchor bones.
Tip: if you select exactly two parts first, Connect joins them straight away.
Position
| Position | Where the slider is | Example |
|---|---|---|
| 0% | At Anchor A. | The start of a carriage’s trip. |
| 50% | Halfway along the connector. | A sleeve in the middle of a piston rod. |
| 100% | At Anchor B. | The end of the trip. |
Drag the slider on the stage, or type Slider → Position. On a bent connector, 50% means halfway along the curve. Position is part of the pose, so each frame (and each copy of the figure) can have its own.
Segment and Slider
A connector is two things: the line you see (Segment) and the joint that travels on it (Slider). Click the line to select the Segment, the slider to select the Slider, or switch with Segment │ Slider at the top of Properties.
| Settings | What they change | |
|---|---|---|
| Segment | Style (colour, Width, Opacity, Shape), Bend, Rig (Anchors, Smart Stretch). | How the connector looks and which joints it connects. |
| Slider | Position and Static. | Where the attachment joint is. |
A connector has no Angle or Length of its own: its two anchors decide them. The dashed lines marked A and B appear while the slider is selected; they are only guides and don’t show in your export.
Change the anchors
- Select the connector and switch to Segment.
- In Rig → Anchors, click the pick button next to Anchor A or Anchor B. The stage header says Click the new anchor on this figure.
- Click the joint. The origin can be an anchor too. A and B must be different joints.
Parts attached to the slider turn with the connector. To keep one at its drawn angle instead, set its Attachment → Orientation to Keep authored angle.
Make the connector a stretch driver
In Segment → Rig, turn on Smart Stretch, then choose what drives it in Driven by:
| Driven by | The stretch is | Example |
|---|---|---|
| Anchor distance | The straight distance between A and B, divided by Rest length. | A 200 px connector squashed to 100 px gives 50%. |
| Slide position | Position divided by Rest slide. | With Rest slide 50%, sliding to 25% gives 50%, even if A and B don’t move. |
| Distance × slide | Both of the above, multiplied. | Half the distance and half the slide give 25%. |
Rest slide goes from 0.01% to 100%. Bending a connector does not change its anchor distance: that is measured in a straight line. Minimum and Maximum only limit how much the attached parts stretch; they never pull the connector off its anchors. More in Smart Stretch.
Animate with a connector
For a piston, turn the crank bone and let the connector keep the rod attached; animate Position only if the sleeve should travel. For a carriage on a rail, keep the anchors still and animate Position from 0% to 100%. Anchors and rules belong to the figure’s design (every copy shares them); Position belongs to the pose. Save figures as .stkz and projects as .styk to keep connectors.
Troubleshooting and limits
Connect asks me to click a joint.
That is normal: with one joint selected, Connect waits for the second. With exactly two parts selected it connects at once. With nothing selected, it starts from the origin.
It refuses to connect two joints.
They must be different joints in different places. It also refuses a link that would depend on itself; pick an anchor outside the connector’s own branch.
I changed the colour but the slider stayed red.
Colour is the Segment’s. The slider is an editing handle, drawn in the app’s joint colours.
The anchors met and the slider stopped moving.
A connector with no length has no direction. Move the anchors apart, or type Position.
Maximum doesn’t stop the anchors.
Those limits are for the stretch of attached parts. Limit the bones that move the anchors instead.
IK won’t turn on for the slider.
The slider is worked out from the anchors. Put IK on the bones that move the anchors.
How do I remove a connector?
Delete it. It can’t be turned back into an ordinary part.
It disappears when I export to Pivot.
Pivot has no connectors. Save .styk or .stkz, or export video, images or SVG.
Related
Still stuck?
Ask the community, or tell us what’s missing from the docs.