MoFlowTranInfo : MaxWrapper

Constructor

addTranInfo < MoFlowTransition >

Adds a new MoFlowTranInfo to the MoFlowTransition and returns the newly created MoFlowTranInfo.

Properties

<MoFlowTranInfo>.length                Integer     Default: 25

The transition length in frames.

<MoFlowTranInfo>.angle                 Float       Default: 0.0

The direction of the destination clip

<MoFlowTranInfo>.easeFrom              Float       Default: 0.5

<MoFlowTranInfo>.easeTo                Float       Default: 0.5

<MoFlowTranInfo>.sourceStart           Integer     Default: Varies

The start frame for the source clip

<MoFlowTranInfo>.destStart             Integer     Default: Varies

The start frame for the destination clip

<MoFlowTranInfo>.sourceState           Boolean     Default: True

false - Fixed

true - Rolling

<MoFlowTranInfo>.destState             Boolean     Default: True

false û Fixed

true û Rolling

<MoFlowTranInfo>.length                Integer     Default: 25

The transition length in frames.

<MoFlowTranInfo>.note                  String      Default: ""

<MoFlowTranInfo>.probability           Integer     Default: 100

Related Methods

deleteTranInfo < MoFlowTransition > <index_integer>

Deletes the indexed MoFlowTranInfo from the MoFlowTransition. . If the MoFlowTranInfo is the only MoFlowTranInfo in MoFlowTransition, it is not deleted.

computeAnimation <moflow> [redraw:<true>] [incGlobals:<false>]

Computes the global flow network. This function has to be called to update any changes made to the motion flow network. redraw:true will redraw the viewports. incGlobals:true will also include the global motion flow network

Notes

Changes to the MoFlowTranInfo property values do not cause an immediate update of the biped. ComputeAnimation must be called on the MoFlow value to recompute the biped motion.

The following example will find the transition information from the first clip (snippet) to the next in the first script defined for the Biped motion flow.

Example:

CSPATH = "f:\\3dsmax31_86\\cstudio\\"

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

select bipObj

max motion mode

bip = bipObj.transform.controller

-- get the MoFlow value from the biped controller:

mf=bip.motionFlow

-- go into motion flow mode and load a motion flow file

bip.motionmode=true

loadMoFlowFile mf (CSPATH + "scripts\\4floloop.mfe")

--

-- get the script of interest from the MoFlow:

mfs=mf.scripts[1]

-- the script items from the script are in mfs.scriptItems.

-- get the snippet (snippet_from) from the first script item:

snippet_from=mfs.snippets[1].snippet

-- get the snippet (snippet_to) from the second script item:

snippet_to=mfs.snippets[2].snippet

-- search the transitions in snippet_from to find

-- the one whose toSnippet property == snippet_to:

theTrans=undefined

for trans in snippet_from.transitions where (trans.toSnippet == snippet_to) do

(  theTrans=trans

   break

)

--get the transition information for the from script item:

theTransInfo=theTrans.tranInfos

See also