Ir al contenido

Rope

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

type: "rope" · Deformer: moves the points of the drawing. · Editor menu: Experimental.

Open paths hang as ropes pinned at both ends: a Verlet chain with the drawn length, Gravity and Damping, that settles and swings; a Wind before it blows it. Pointer and Radius place a round obstacle that pushes the ropes out of its way (bind Pointer to the cursor with scene.mouse formulas, Space set to Scene). Time follows scene.time unless it is set; keep Rope first in the stack (after a Wind), as it keeps its state between frames. Closed paths are left alone.

Param Type Default Range Notes
time number 0 min 0, max 100000, step 0.01 left out, it follows scene.time; label: Time (s)
gravity number 1 min 0, max 10, step 0.01 fraction of the drawing size
damping number 0.8 min 0, max 20, step 0.05
stiffness number 14 min 1, max 60, step 1 not animatable
segments number 24 min 4, max 120, step 1 not animatable
pointer point [-2,-2] [x, y], fractions of the box (0–1), shown as percentages in the editor group: Pointer
space enum "box" box, scene not animatable; group: Pointer; label: Pointer in
radius number 0 min 0, max 1, step 0.005 fraction of the drawing size; group: Pointer
settle number 0 min 0, max 10, step 0.1 unit: s; not animatable; label: Settle (s)

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": "rope-1",
"type": "rope",
"params": {
"time": {
"$expr": "scene.time",
"fallback": 0
},
"gravity": 1,
"damping": 0.8,
"stiffness": 14,
"segments": 24,
"pointer": [
-2,
-2
],
"space": "box",
"radius": 0,
"settle": 0
}
}

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