MAXScript Extensions > MAXScript Extensions for Reactor >

# reactor_SoftBody : Modifier

    reactor_SoftBody - superclass: Modifier; super-superclass:MAXWrapper - classID: #(1023033509, 867046762)

The Reactor dynamics system has been retired and REMOVED from 3ds Max 2012.

Value > MAXWrapper > Modifier > reactor_SoftBody

Constructor

    reactor_SoftBody...

Properties

    .adm_defMesh (Deformable_Mesh) : node

Get/Set the Deformable Mesh node.

    .adm_ignoreCollisions (Ignore_Collisions) : boolean

When set to true, Deformable Mesh collisions will not be calculated.

    .arb_rigidBody (RigidBody) : node

Get/Set the Rigid Body node.

    .arb_doNotAffectRigidBody (Do_Not_Affect_RigidBody) : boolean

When set to true, the Rigid Body will not be affected.

    .arb_ignoreCollisions (Ignore_Collisions) : boolean

When set to true, Rigid Body collisions will not be calculated.

    .kf_useStoredKeyframes (Use_Stored_Keyframes) : boolean

When set to true, stored keyframes will be used.

    .mass : float

Get/Set the Mass value.

    .stiffness : float

The stiffness of the soft body - this governs how stretchy the body is.

    .friction : float

Get/Set the Friction value.

    .useCurrentState (Use_Current_State) : boolean

When set to true , the Soft Body object will start the simulation in its current state in the viewport.

    .damping : float

Get/Set the damping coefficient for the oscillation of the soft body's compression and expansion

    .method : integer

Get/Set the simulation method. Possible values are:

0 - Mesh-based

1 - FFD-Based

    .ffdStableConfiguration (Stable_Configuration) : integer

Get/Set the stable configuration source. Possible values are:

0 - Original Box

1 - Frame

    .ffdStableFrame (Stable_Frame) : integer

Get/Set the stable configuration frame:

    .avoidSelfIntersections (Avoid_Self_Intersections) : boolean

When set to true , the Soft Body will not appear to intersect with itself during the simulation. This results in a more realistic-looking simulation, but may increase simulation time.

    .useSoftSelection (Use_Soft_Selection) : boolean

When set to true, the Soft Selection will be used to smooth the transition between keyframed and simulated vertices for this deformable object.

    .animateTransform (Animate_Transform) : boolean

When set to true, animated object transformations will be taken into account by the simulation.

### Interfaces:

    Interface:rctSoftBodyInterface

Properties:

    .currentVertexSelection: bitArray by value : Read|Write

Get/Set the current vertex selection as bitArray.

    .currentConstraintIndex: integer : Read|Write

Get/Set the index of the current constraint in the list.

    .currentConstraintName: string : Read|Write

Get/Set the name of the current constraint in the list.

Methods:

    <string>currentConstraintDescription()

Returns the description of the current Constraint as string.

    <integer>addAttachToRigidBodyConstraint()

Corresponds to pressing the "Attach To Rigid Body" button in the UI. Returns the list index of the new constraint.

    <integer>addAttachToDefMeshConstraint()

Corresponds to pressing the "Attach To DefMesh" button in the UI. Returns the list index of the new constraint.

    <integer>addFixVerticesConstraint()

Corresponds to pressing the "Fix Vertices" button in the UI. Returns the list index of the new constraint.

    <integer>addKeyframeVerticesConstraint()

Corresponds to pressing the "Keyframe Vertices" button in the UI. Returns the list index of the new constraint.

    <boolean>deleteConstraint()

Corresponds to pressing the "Delete Constraint" button in the UI. Returns true on success.

    <integer>getNumStoredKeyframes()

Returns the number of stored keyframes.

    <void>clearStoredKeyframes()

Removes the stored keyframes.

#### See Also

- SBCollection : Helper

- MAXScript Extensions forReactor