Ir al contenido

Pin

Esta página aún no está disponible en tu idioma.

type: "pin" · Deformer: moves the points of the drawing. · Editor menu: Motion.

Holds points of the drawing while the next simulation moves the rest: a following Gravity, or the Physics of an enclosing group. One Pin can hold several at once, all added up: those within Radius of each of its Points (each Point at least the nearest one; add and remove them in the inspector, move them on the canvas), those inside the closed contours of its Regions (other objects, hidden or not; the material only has particles on the outline, so a Region must cover part of it), and the Start, End or both Path ends of open paths. The points are chosen when the element starts: a Region that moves later doesn’t change them. Anchor: Scene keeps them where they were when the simulation started, even if the object is animated; Object makes them follow another object (To), which can be animated: they move as far as it moves (not its rotation). Strength 1 holds them still; less, they hang from their anchor on a spring that softens towards 0. For other points with another strength or anchor, add another Pin; a point held by more than one takes the strongest. A shape without Soft Body is held as a rigid body (one point is a hinge, two fix it). Changes no geometry by itself. Object anchors need Physics: a standalone Gravity holds them like Scene. A rigid shape held at Strength 1 by two or more Points or a Region is fixed, and by one Point hangs from it, in the rigid simulation itself (no particles): cheap enough to hold every letter of a text and let each go at its moment (Each › Pin with Strength 1 − step(moment, scene.time)).

Param Type Default Range Notes
points points [[0.5,0]] array of [x, y], fractions of the box (0–1), shown as percentages in the editor not animatable
radius number 0.05 min 0, max 1, step 0.005 fraction of the drawing size
regions nodes [] array of node ids not animatable
ends enum "none" none, start, end, both not animatable; label: Path ends
anchor enum "scene" scene, object not animatable
to node "" id of another node not animatable; only when anchor is object
strength number 1 min 0, max 1, step 0.01 shown as a percentage in the editor (0.5 is 50 %)

Missing parameters take their default. Numbers and angles (and points and colours) can be animated with a track { on: "modifier", modifier: "<id>", param: "<name>" } unless noted.

Inside a node’s stack (effects run top to bottom):

{
"id": "pin-1",
"type": "pin",
"params": {
"points": [
[
0.5,
0
]
],
"radius": 0.05,
"regions": [],
"ends": "none",
"anchor": "scene",
"to": "",
"strength": 1
}
}

Generated from the schema of @svertik/engine. See the index.