Chapter 7 · Quick reference

7.2TnpixTool

node is the object that carries the modifier. Indexes count from 0 (materials from the top of the stack; collider rows as rows prints them), except the Threads functions, which count from 1.

Function Returns Use
reset() – Reset Simulation: clears the stored frames (ask first)
sim node frame integer Simulate up to a frame, as scrubbing does; returns the frames stored
live node op arg string Live at frame 0: "start" (arg 0, or 2-64 Fast preview), "step", "keep", "stop", "release", "info", "shape", "clear", "keepframe"
liveGrab node vertex target radius string While Live runs, hold a vertex (from 1) and the cloth around it toward a world position
colAdd node collider boolean Add a collider row, as Pick Object does
colCount node integer Number of collider rows
rows node string Every row and its settings
colSet node index field value boolean Set one setting of one row (fields in 7.6)
selfColLayers node string The garment list's layers
chanAdd node name fill boolean New channel at fill, and selected; make the Channel current in the Modify panel first, as for painting
chanPaint node center radius mode strength boolean One brush dab, object space; modes 0 Add, 1 Subtract, 2 Replace, 3 Smooth
chanStroke node on boolean Open (true) or close (false) a stroke
chanKeys node shift ctrl boolean Inside a stroke, hold Shift (smooth) or Ctrl (subtract)
chanApplySel node / chanRemSel node boolean Write the panel's Value into the selected vertices / set them to 0
chanClear node boolean Set the selected channel to 0 (ask first)
chans node string The channel table
chanCount node name atOrAbove integer Points painted at or above a value; −1 = no such channel
chanRemove node name boolean Delete a channel and its tear lines (ask first)
chanMirror node side tolerance string Mirror the selected channel to the other side
chanSelCount node edges integer Size of the Channel's vertex or edge selection
tearCut node channel points projDir spacing string Cut a line into the mesh and mark it in the channel
tearRemove node mode string Remove the last cut (0) or every cut (1); undoable (ask first)
pinSet node channel weight followObject boolean Set the Pin's channel, weight and object in one call
goldCount node / goldAt node index integer / string Count / read Standard materials (the text names the channel)
goldSetAt node index field value boolean Set a Standard dial by name (7.6); goldSet acts on the first one
goldClearAt node index field boolean Untick matFriction, matGrip or strainRateLimit, keeping the number
goldChanAt node index channel boolean Bind a Standard material to a channel ("" = whole garment); goldChan acts on the first one
goldPreset node index boolean Stock fabric 0-11 onto the first Standard material
matCount node / matAt node index integer / string Count / read Advanced materials
matSetAt node index field value boolean Set an Advanced value by name (7.6) and tick it
matSetPairAt node index family coeff magIdx boolean Stiffness as coefficient × Multiplier row; family "stretch" or "bend"
matSetBendModelAt node index model boolean Bend type: 0 Basic, 1 Shape Memory, 3 Shape Memory (Even)
matPresetAt node index presetRow boolean 1 Ultra Light, 2 Light, 3 Medium, 4 Heavy, 5 Leather (resets every dial first)
matAuthoredAt node index on boolean 0 runs pure defaults, 1 your values again
matShearKClearAt node index boolean Withdraw the shear stiffness, keeping the value
matChanAt node index channel boolean Bind an Advanced material to a channel
cacheSave node integer Save the Cache's range; frames written or −1. Ask the artist first if the file exists.
cacheLoad node / cacheClear node boolean Play the Cache's file / stop and forget it (deletes nothing)
cacheInfo node string File, found, frames, playing, last status
postInfo node / postCaptureRest node string / boolean Post Process settings and rest / take the rest pose now
rigidInfo node string Rigid pieces and points
wrapFill node / wrapInfo node / wrapReset node integer / string / boolean Fill the proxy memory / its state / forget the bind, rest shape and cuts, and bind again (ask first)
threadsInfo node / threadsInfoAt node index string Threads status lines
threadsMakeObject node / threadsMakeObjectAt node index string Make the threads object; returns its name
mbLayer, mbStroke, mbKey / mbInfo integer / string Motion Brush layers, strokes and keys / the layers as text
licInfo() / licCap() string / integer Licence state / the demo's vertex limit
licActivate, licCheck, licDeactivate string The artist's own licence actions: leave them to the artist, and never handle a key