MoFlowTranInfo : MaxWrapper

コンストラクタ

addTranInfo < MoFlowTransition >     

新しい MoFlowTranInfo を MoFlowTransition に追加して、新しく作成された MoFlowTranInfo を返します。

プロパティ

<MoFlowTranInfo>.length Integer Default: 25   

フレーム内のトランジションの長さ。

<MoFlowTranInfo>.angle Float Default: 0.0

ターゲット クリップの方向。

<MoFlowTranInfo>.easeFrom Float Default: 0.5
<MoFlowTranInfo>.easeTo Float Default: 0.5
<MoFlowTranInfo>.sourceStart Integer Default: Varies

ソース クリップの開始フレーム。

<MoFlowTranInfo>.destStart Integer Default: Varies     

ターゲット クリップの開始フレーム。

<MoFlowTranInfo>.sourceState Boolean Default: True

false - 固定

true - 回転

<MoFlowTranInfo>.destState Boolean Default: True

false - 固定

true - 回転

<MoFlowTranInfo>.note String Default:""
<MoFlowTranInfo>.probability Integer Default: 100

関連するメソッド:

deleteTranInfo < MoFlowTransition > <index_integer>

インデックスで指定された MoFlowTranInfo を MoFlowTransition から削除します。MoFlowTranInfo が MoFlowTransition に 1 つしかない場合は、削除されません。

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

グローバル フロー ネットワークを計算します。モーション フロー ネットワークへの変更を更新するには、この関数を呼び出す必要があります。redraw:true はビューポートを再描画します。グローバル モーション フロー ネットワークは incGlobals:true にも組み込まれます。

注:

MoFlowSnippet プロパティ値を変更しても、Biped はすぐには更新されません。Biped モーションを再計算するには、MoFlow 値で ComputeAnimation を呼び出す必要があります。

次の例では、Biped モーション フローに関して定義された最初のスクリプトで、最初のクリップ(断片)から次のクリップへのトランジションの情報を検索します。

    CSPATH ="f:\\3dsmax31_86\\cstudio\\"
    bipObj = biped.createNew 100 100 [0,0,0]
    select bipObj
    max motion mode
    bip = bipObj.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 and make it the active script:
    mfs = mf.activeScript= mf.scripts [2]   -- the sequence of snippets for the script are in mfs..snippets -- get the first snippet (snippet_from) from the script: snippet_from = mfs.snippets[1]   -- get the second snippet (snippet_to) from the script:
    snippet_to = mfs.snippets[2]   -- 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 )   
    -- which transition info used to go from snippet_from to snippet_to for
    -- this particular transition is in the mfs.tranIndices array:
    whichTrans = mfs.tranIndices[1]   --get the transition information for the from script item:
    theTransInfo = theTrans.tranInfos[whichTrans]