Biped Layers

 

Layer related methods

biped.collapseAtLayer <biped_ctrl> <index>

Collapses layer index+1 into layer index. All layers underneath (<= index+1) should be active for this function to work. Returns true if successful, otherwise false.

biped.createLayer <biped_ctrl> <index> <name>

Creates a layer at the specified position, maximum index value can be NumLayers

biped.deleteLayer <biped_ctrl> <index>

Deletes the specified layer

biped.getCurrentLayer <biped_ctrl>

Returns the position of the currently active layer in the UI

biped.getLayerActive <biped_ctrl> <index>

Returns true if the specified layer is active.

biped.getLayerName <biped_ctrl> <index>

Returns the specified layer name

biped.numLayers <biped_ctrl>

Returns the number of layers

biped.setCurrentLayer <biped_ctrl> <index>

Sets the active layer in the UI to the specified layer

biped.setLayerActive <biped_ctrl> <index> <bool_val>

Sets the specified layer to active/inactive based upon the bool_val passed

biped.setLayerName <biped_ctrl> <index> <name>

Sets the specified layer name to the value passed

 

biped.setSnapKey <biped_node>

Sets the snap key for a layer

 

The following example will create a new Biped, access it’s Vertical_Horizontal_Turn(Body) controller and load a specific *.Bip file:

Example:

-- create a new Biped

bipObj = biped.createNew 100 100 [0,0,0]

-- select bipObj

bip = bipObj.controller

 

max motion mode

 

-- File I/O

biped.LoadBipFile bip (CSPATH + "scripts\\Limploop.bip")

See also

Biped Creation

Biped Controllers

Biped MaxScript Extensions