Initialize event

From Fracture FX
Revision as of 04:39, 16 July 2012 by Ed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a default event that can not be removed from the simulator. It has no event filters or modifiers but it does have an initialization script:


// MEL to execute at the start frame do { // add input meshes to the simulation world string $plug = $this+".in_mesh"; int $logIdx, $ids[] = `getAttr -mi $plug`; for ($logIdx in $ids) { string $dstPlug = $plug+"["+$logIdx+"]"; int $bodyId = `fxCmd createBody $dstPlug`; // body data may be attached here, in addition to setting it // from the UI (custom data layout under Inputs tab) // fxCmd setAttr $bodyId "foo" "int" 123; } } while (0);

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox