SI_ShapeAnimation

Specifies shape animation, which is the animation of vertex positions, normals, colors, and texture coordinates.

Shape animation is stored as a series of shapes and an fcurve that assigns the shapes to times/frames.

 

This template corresponds to the CSLShapeAnimation class.

Introduced

2.0

Template

SI_ShapeAnimation SHPANIM-<objectName>
{
  "LINEAR",
  <nbShapes>,
  SI_Shape SHP-<objectName>-0
  {
   // ... 
  }

  // ... 

  SI_Shape SHP-<objectName>-<nbShapes - 1>
  {
   // ... 
  }

  SI_FCurve <objectName>-SHPANIM-1
  {
   // ... 
  }
}

Examples

SI_ShapeAnimation SHPANIM-cube { 

          "LINEAR", 
          20, 
          SI_Shape SHP-cube-0 { 
              2, 
              "INDEXED", 

              8, 
              "POSITION", 
              0.000000,-4.000000,-4.000000,-4.000000,
              1.000000,4.000000,-4.000000,-4.000000,
              2.000000,-4.000000,4.000000,-4.000000,
              3.000000,4.000000,4.000000,-4.000000,
              4.000000,-4.000000,-4.000000,4.000000,
              5.000000,4.000000,-4.000000,4.000000,
              6.000000,-4.000000,4.000000,4.000000,
              7.000000,4.000000,4.000000,4.000000,

              24, 
              "NORMAL", 
              0.000000,0.000000,0.000000,-1.000000,
              1.000000,0.000000,0.000000,-1.000000,
              2.000000,0.000000,0.000000,-1.000000,
              3.000000,0.000000,0.000000,-1.000000,
              4.000000,0.000000,-1.000000,0.000000,
              5.000000,0.000000,-1.000000,0.000000,
              6.000000,0.000000,-1.000000,0.000000,
              7.000000,0.000000,-1.000000,0.000000,
              8.000000,-1.000000,0.000000,0.000000,
              9.000000,-1.000000,0.000000,0.000000,
              10.000000,-1.000000,0.000000,0.000000,
              11.000000,-1.000000,0.000000,0.000000,
              12.000000,1.000000,0.000000,0.000000,
              13.000000,1.000000,0.000000,0.000000,
              14.000000,1.000000,0.000000,0.000000,
              15.000000,1.000000,0.000000,0.000000,
              16.000000,0.000000,1.000000,0.000000,
              17.000000,0.000000,1.000000,0.000000,
              18.000000,0.000000,1.000000,0.000000,
              19.000000,0.000000,1.000000,0.000000,
              20.000000,0.000000,0.000000,1.000000,
              21.000000,0.000000,0.000000,1.000000,
              22.000000,0.000000,0.000000,1.000000,
              23.000000,0.000000,0.000000,1.000000,

          }

          SI_Shape SHP-cube-1 { 
              2, 
              "INDEXED", 

              8, 
              "POSITION", 
              0.000000,-4.000000,-4.000000,-4.000000,
              1.000000,4.000000,-4.000000,-4.000000,
              2.000000,-4.000000,4.000000,-4.000000,
              3.000000,4.000000,4.000000,-4.000000,
              4.000000,-4.000000,-4.000000,4.000000,
              5.000000,4.000000,-4.000000,4.000000,
              6.000000,-3.863324,3.862999,3.999535,
              7.000000,4.000000,4.000000,4.000000,

              24, 
              "NORMAL", 
              0.000000,0.000000,0.000000,-1.000000,
              1.000000,0.000000,0.000000,-1.000000,
              2.000000,0.000000,0.000000,-1.000000,
              3.000000,0.000000,0.000000,-1.000000,
              4.000000,0.000000,-1.000000,0.000000,
              5.000000,0.000000,-1.000000,0.000000,
              6.000000,0.000000,-1.000000,0.000000,
              7.000000,0.000000,-1.000000,0.000000,
              8.000000,-0.999926,0.008616,0.008616,
              9.000000,-0.999926,0.008616,0.008616,
              10.000000,-0.999926,0.008616,0.008616,
              11.000000,-0.999926,0.008616,0.008616,
              12.000000,1.000000,0.000000,0.000000,
              13.000000,1.000000,0.000000,0.000000,
              14.000000,1.000000,0.000000,0.000000,
              15.000000,1.000000,0.000000,0.000000,
              16.000000,-0.008636,0.999925,0.008636,
              17.000000,-0.008636,0.999925,0.008636,
              18.000000,-0.008636,0.999925,0.008636,
              19.000000,-0.008636,0.999925,0.008636,
              20.000000,-0.000030,0.000030,1.000000,
              21.000000,-0.000030,0.000030,1.000000,
              22.000000,-0.000030,0.000030,1.000000,
              23.000000,-0.000030,0.000030,1.000000,

          }

          SI_Shape SHP-cube-2 { 
              2, 
              "INDEXED", 

              8, 
              "POSITION", 
              0.000000,-4.000000,-4.000000,-4.000000,
              1.000000,4.000000,-4.000000,-4.000000,
              2.000000,-4.000000,4.000000,-4.000000,
              3.000000,4.000000,4.000000,-4.000000,
              4.000000,-4.000000,-4.000000,4.000000,
              5.000000,4.000000,-4.000000,4.000000,
              6.000000,-3.497031,3.495836,3.998289,
              7.000000,4.000000,4.000000,4.000000,

              24, 
              "NORMAL", 
              0.000000,0.000000,0.000000,-1.000000,
              1.000000,0.000000,0.000000,-1.000000,
              2.000000,0.000000,0.000000,-1.000000,
              3.000000,0.000000,0.000000,-1.000000,
              4.000000,0.000000,-1.000000,0.000000,
              5.000000,0.000000,-1.000000,0.000000,
              6.000000,0.000000,-1.000000,0.000000,
              7.000000,0.000000,-1.000000,0.000000,
              8.000000,-0.998948,0.032428,0.032428,
              9.000000,-0.998948,0.032428,0.032428,
              10.000000,-0.998948,0.032428,0.032428,
              11.000000,-0.998948,0.032428,0.032428,
              12.000000,1.000000,0.000000,0.000000,
              13.000000,1.000000,0.000000,0.000000,
              14.000000,1.000000,0.000000,0.000000,
              15.000000,1.000000,0.000000,0.000000,
              16.000000,-0.032502,0.998943,0.032502,
              17.000000,-0.032502,0.998943,0.032502,
              18.000000,-0.032502,0.998943,0.032502,
              19.000000,-0.032502,0.998943,0.032502,
              20.000000,-0.000114,0.000114,1.000000,
              21.000000,-0.000114,0.000114,1.000000,
              22.000000,-0.000114,0.000114,1.000000,
              23.000000,-0.000114,0.000114,1.000000,

          }



Autodesk Crosswalk v4.0