Chapter 1 · Introduction
1.2Addressing the Modifiers
Each TenPix modifier is an ordinary 3ds Max modifier. Its MAXScript class name is the panel name with the spaces replaced by underscores; each class also answers to a second, compact name.
| Script class | Also | Panel name | What it is |
|---|---|---|---|
| Tnpix_Solver | TnpixSolver | Tnpix Solver | The simulation |
| Tnpix_Garment | TnpixGarment | Tnpix Garment | Mesh rebuild (remesh or OpenVDB) |
| Tnpix_Gravity | TnpixGravity | Tnpix Gravity | Gravity for the Solver group |
| Tnpix_Forces | TnpixForces | Tnpix Forces | 3ds Max space warps |
| Tnpix_Collision | TnpixCollision | Tnpix Collision | The collider list |
| Tnpix_Self_Collision | TnpixSelfCollision | Tnpix Self Collision | Self and garment-to-garment contact, layers |
| Tnpix_Material_Standard | TnpixGoldMaterial | Tnpix Material Standard | Stock fabrics and everyday dials |
| Tnpix_Material_Advanced | TnpixMaterial | Tnpix Material Advanced | The full fabric model |
| Tnpix_Channel | TnpixChannel | Tnpix Channel | Painted weight maps; the tear brush |
| Tnpix_Pin | TnpixPin | Tnpix Pin | Holds a painted region in place or on an object |
| Tnpix_Preserve | TnpixPreserve | Tnpix Preserve | A painted region follows the animation below the Solver |
| Tnpix_Stitch | TnpixStitch | Tnpix Stitch | Holds cloth to cloth |
| Tnpix_Tear | TnpixTear | Tnpix Tear | Tearing |
| Tnpix_Volume | TnpixVolume | Tnpix Volume | Volume, pressure, buoyancy |
| Tnpix_Rigid | TnpixRigid | Tnpix Rigid | Solid pieces inside the cloth |
| Tnpix_Soft_Body | TnpixSoftBody | Tnpix Soft Body | Soft flesh and simple muscles (experimental) |
| Tnpix_Cache | TnpixCache | Tnpix Cache | Saves and plays the simulation (.tnc, .abc) |
| Tnpix_Post_Process | TnpixPostProcess | Tnpix Post Process | Delta Mush and detangle after the solve |
| Tnpix_Wrap | TnpixWrap | Tnpix Wrap | A detailed mesh following simulated proxies |
| Tnpix_Threads | TnpixThreads | Tnpix Threads | Warp and weft threads at tears and painted hems |
| Tnpix_Threads_Object | TnpixThreadsObject | Tnpix Threads Object | A geometry object that shows a cloth's threads (not a modifier) |
addModifier $ (Tnpix_Solver()) -- add a modifier to the selection
$.modifiers[#Tnpix_Solver].iterations = 3 -- address it by name on the stack
$.modifiers[#Tnpix_Garment].edgeLength = 0.5
addModifier puts the new modifier on top of the stack, so add them bottom-up: Tnpix Garment first, then
the Solver, and the modifiers that work on its result (Tnpix Threads, Cache, Post Process) after it.