RPCollection : Helper

RPCollection - superclass: Helper; super-superclass:Node - classID: #(788030612, 1741385839) 

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

   

Value > MAXWrapper > Node > Helper > reactor > RPCollection

Constructors:

RPCollection ... rctRPCollection ... 

   

Properties:

.disabled: boolean 

When set to true , the RPCollection will be disabled.

   

.internalSteps (Internal_Steps) : integer 

Controls the number of internal substeps per keyframe performed by the Rope simulation - corresponds to the "Internal Steps" spinner in the Advanced rollout.

   

Interfaces

Interface:rctRopeCollectionInterface 

Properties:

.ropes: node by value array : Read|Write 

Get/Set the array of rope nodes in the collection.

   

.disabled: boolean : Read|Write 

When set to true , disables the collection.

   

Methods:

<boolean>addRope <node>node 

Adds a rope node to the collection. Returns true on success. Returns false if the node does not have areactor_Rope : Modifierapplied.

   

<boolean>removeRopeIndex <integer>index 

Removes the indexed rope node from the collection. Returns true on success.

   

<boolean>removeRope <node>node 

Removes the specified rope node from the collection. Returns true on success.

   

<integer>getNumRope() 

Returns the number of rope nodes in the collection.

EXAMPLE:

rpc = RPCollection()--create a Rope collection
$RPCollection:RPCollection01 @ [0.000000,0.000000,0.000000]
s = Helix()--create a Helix shape
$Helix:Helix01 @ [0.000000,0.000000,0.000000]
rpc.addRope s--try to add to collection
false--you cannot, no reactor_rope added
addmodifier s (reactor_Rope())--add modifier to turn Helix to rope
OK
rpc.addRope s--try to add the Helix again
true--this time it worked.
rpc.ropes--take a look at the list of ropes
#($Editable_Spline:Helix01 @ [0.000000,0.000000,0.000000])
rpc.removeRope s--remove the rope by node
true--it is gone.
rpc.ropes = #($Helix01)--add it again, this time directly as array
#($Editable_Spline:Helix01 @ [0.000000,0.000000,0.000000])
rpc.getNumRopes()--see how many ropes there are
1--one as expected! 

See Also