[Go back to index]

Asobo\Generic\Animations.xml

Source XML
<ModelBehaviors> <Include RelativeFile="Subtemplates\\Animations_Subtemplates.xml"/> <!-- ####################################################################### --> <!-- ###################### Animation Templates ############################ --> <!-- ####################################################################### --> <!-- Simvar driven sim animation. Required parameter: ANIM_NAME ANIM_SIMVAR ANIM_SIMVAR_UNITS --> <Template Name = "ASOBO_GT_Anim_Sim"> <DefaultTemplateParameters> <ANIM_LENGTH>100</ANIM_LENGTH> <ANIM_SIMVAR_SCALE>1</ANIM_SIMVAR_SCALE> <ANIM_SIMVAR_BIAS>0</ANIM_SIMVAR_BIAS> </DefaultTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <Condition Check="INVERT_ANIM"> <True> <UseTemplate Name = "ASOBO_GT_Anim_Code"> <ANIM_CODE>(A:#ANIM_SIMVAR#, #ANIM_SIMVAR_UNITS#) #ANIM_SIMVAR_SCALE# * #ANIM_SIMVAR_BIAS# +</ANIM_CODE> </UseTemplate> </True> <False> <Condition Check="FAILURE"> <True> <UseTemplate Name = "ASOBO_GT_Anim_Code"> <ANIM_CODE>(A:#ANIM_SIMVAR#, #ANIM_SIMVAR_UNITS#) #ANIM_SIMVAR_SCALE# * #ANIM_SIMVAR_BIAS# +</ANIM_CODE> </UseTemplate> </True> <False> <UseTemplate Name = "ASOBO_GT_Anim_Sim_Base"> </UseTemplate> </False> </Condition> </False> </Condition> </False> </Condition> </Template> <!-- Code driven sim animation. Required parameter: ANIM_NAME ANIM_CODE --> <Template Name = "ASOBO_GT_Anim_Code"> <DefaultTemplateParameters> <ANIM_LENGTH>100</ANIM_LENGTH> <ID/> </DefaultTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <UseTemplate Name="ASOBO_GT_Anim_Code_Failure_Test"/> </False> </Condition> </Template> <!-- Generic Anim Code - depends on parameters. Required parameter: ANIM_NAME ANIM_CODE / (ANIM_SIMVAR, ANIM_SIMVAR_UNITS) --> <Template Name = "ASOBO_GT_Anim"> <DefaultTemplateParameters> </DefaultTemplateParameters> <Condition Check="ANIM_SIMVAR"> <True> <UseTemplate Name="ASOBO_GT_Anim_Sim"> </UseTemplate> </True> <False> <UseTemplate Name="ASOBO_GT_Anim_Code"> </UseTemplate> </False> </Condition> </Template> <!-- Init an animation to a desired position Required parameter: ANIM_NAME NODE_ID (default is ANIM_NAME) PERCENT (position to setup) --> <Template Name = "ASOBO_GT_Anim_Setup"> <DefaultTemplateParameters> <NODE_ID>#ANIM_NAME#</NODE_ID> <ANIM_LENGTH>100</ANIM_LENGTH> </DefaultTemplateParameters> <Component ID="#NODE_ID#" Node="NODE_ID"> <UseTemplate Name="ASOBO_GT_Anim_Code_Base"> <ANIM_CODE>#PERCENT#</ANIM_CODE> </UseTemplate> </Component> </Template> </ModelBehaviors>

Includes

Templates

Template list
  • ASOBO_GT_Anim_Sim

    Definition from XML
    <Template Name="ASOBO_GT_Anim_Sim"> <DefaultTemplateParameters> <ANIM_LENGTH>100</ANIM_LENGTH> <ANIM_SIMVAR_SCALE>1</ANIM_SIMVAR_SCALE> <ANIM_SIMVAR_BIAS>0</ANIM_SIMVAR_BIAS> </DefaultTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <Condition Check="INVERT_ANIM"> <True> <UseTemplate Name="ASOBO_GT_Anim_Code"> <ANIM_CODE>(A:#ANIM_SIMVAR#, #ANIM_SIMVAR_UNITS#) #ANIM_SIMVAR_SCALE# * #ANIM_SIMVAR_BIAS# +</ANIM_CODE> </UseTemplate> </True> <False> <Condition Check="FAILURE"> <True> <UseTemplate Name="ASOBO_GT_Anim_Code"> <ANIM_CODE>(A:#ANIM_SIMVAR#, #ANIM_SIMVAR_UNITS#) #ANIM_SIMVAR_SCALE# * #ANIM_SIMVAR_BIAS# +</ANIM_CODE> </UseTemplate> </True> <False> <UseTemplate Name="ASOBO_GT_Anim_Sim_Base"/> </False> </Condition> </False> </Condition> </False> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • ANIM_LENGTH
      • ANIM_SIMVAR_SCALE
      • ANIM_SIMVAR_BIAS

    Condition: Valid(DISABLE_ANIMATION)

    • Case: False

      Condition: Check(INVERT_ANIM)

      • Case: True

        Templates used:

        • ASOBO_GT_Anim_Code

          Parameters set:

          • ANIM_CODE (using ANIM_SIMVAR, ANIM_SIMVAR_UNITS, ANIM_SIMVAR_SCALE, ANIM_SIMVAR_BIAS)
      • Case: False

        Condition: Check(FAILURE)

        • Case: True

          Templates used:

          • ASOBO_GT_Anim_Code

            Parameters set:

            • ANIM_CODE (using ANIM_SIMVAR, ANIM_SIMVAR_UNITS, ANIM_SIMVAR_SCALE, ANIM_SIMVAR_BIAS)
        • Case: False

          Templates used:

  • ASOBO_GT_Anim_Code

    Definition from XML
    <Template Name="ASOBO_GT_Anim_Code"> <DefaultTemplateParameters> <ANIM_LENGTH>100</ANIM_LENGTH> <ID/> </DefaultTemplateParameters> <Condition Valid="DISABLE_ANIMATION"> <False> <UseTemplate Name="ASOBO_GT_Anim_Code_Failure_Test"/> </False> </Condition> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • ANIM_LENGTH
      • ID

    Condition: Valid(DISABLE_ANIMATION)

  • ASOBO_GT_Anim

    Definition from XML
    <Template Name="ASOBO_GT_Anim"> <DefaultTemplateParameters/> <Condition Check="ANIM_SIMVAR"> <True> <UseTemplate Name="ASOBO_GT_Anim_Sim"/> </True> <False> <UseTemplate Name="ASOBO_GT_Anim_Code"/> </False> </Condition> </Template>

    Parameters initialization:

    • Default

    Condition: Check(ANIM_SIMVAR)

  • ASOBO_GT_Anim_Setup

    Definition from XML
    <Template Name="ASOBO_GT_Anim_Setup"> <DefaultTemplateParameters> <NODE_ID>#ANIM_NAME#</NODE_ID> <ANIM_LENGTH>100</ANIM_LENGTH> </DefaultTemplateParameters> <Component ID="#NODE_ID#" Node="NODE_ID"> <UseTemplate Name="ASOBO_GT_Anim_Code_Base"> <ANIM_CODE>#PERCENT#</ANIM_CODE> </UseTemplate> </Component> </Template>

    Parameters initialization:

    • Default

      Parameters set:

      • NODE_ID (using ANIM_NAME)
      • ANIM_LENGTH

    Parameters read:

    • NODE_ID

    Components: