Motion

Space combinaison: circular combined with a segment motion produces an helice motion
Time combinaison: a circular follows a segement motion
Motion Definition
 The space coordonnates (coord attribute) the Motion can animate are:
  • Position only: coord="pos"
  • Rotation only: coord="rot"
  • Position & Rotation: coord="pos-rot"
  • Position & Target (camera): coord="pos-target"
Motion can be used in a 2d or a 3d space.
 The space coordonnates affect:
  • 3d process (Max, Maya): the scene objects
  • Compositing process (Nuke): the node knobs translate & rotation (ex: Transform Node, Card Node, etc.)
  • Montage process: a layer position & rotation (ex: Image Layer, Shape Layer, etc.)
 A Motion can be defined by:
Avantage of temporal and curvilinear function conbination (case 2 & 3) is that the user can easly split the space and the time behavior of the motion.
See details "Path"
See details "Velocity"

 Temporal Function

example: data use
<Object create="object" name="teapot">
     <Param name="class">teapot</Param>
     <Motion name="m1" coord="pos-rot" type="data" frames="1-100">
             <Param name="creationId">data1</Param>
             <Param name="pos">x;y;z</Param>
             <Param name="rot">rx;ry;rz</Param>
     </Motion>
</Object>
example: rotation
<Object create="object" name="teapot">
     <Param name="class">teapot</Param>
     <Motion property="rot" type="rotate" frames="1-100/11">
             <Param name="begin">0;0;0</Param>
             <Param name="end">0;0;180</Param>
             <Velocity name="v1" type="square" frames="1-100" />
     </Motion>
</Object>
example: a square velocity follows a linear velocity
<Object create="object" name="teapot">
     <Param name="class">teapot</Param>
     <Motion coord="rot" type="rotate" frames="1-100/11">
             <Param name="begin">0;0;0</Param>
             <Param name="end">0;0;180</Param>
             <Velocity name="v1" type="linear" frames="1-50">
                     <Param name="begin">0</Param>
                     <Param name="end">1</Param>
             </Velocity>
             <Velocity name="v1" type="square" frames="51-100">
                     <Param name="begin">1</Param>
                     <Param name="end">0</Param>
             </Velocity>
     </Motion>
</Object>
example: a segment path combined with a square velocity
<Object create="object" name="teapot">
     <Param name="class">teapot</Param>
     <Motion name="m2" coord="pos" frames="1-100/6">
             <Path type="AtoB">1
                     <Param name="begin">0;100;0</Param>
                     <Param name="end">0;150;0</Param>
             </Path>
             <Velocity name="v1" type="square" frames="1-100" />
     </Motion>
</Object>
This Motion is defined by:
example: a segment path combined with a square velocity following a linear velocity
<Object create="object" name="teapot">
     <Param name="class">teapot</Param>
     <Motion name="m2" coord="pos" frames="1-100/6">
             <Path type="AtoB">1
                     <Param name="begin">0;100;0</Param>
                     <Param name="end">0;150;0</Param>
             </Path>
             <Velocity name="v1" type="linear" frames="1-50">
                     <Param name="begin">0</Param>
                     <Param name="end">1</Param>
             </Velocity>
             <Velocity name="v1" type="square" frames="51-100">
                     <Param name="begin">1</Param>
                     <Param name="end">0</Param>
             </Velocity>
     </Motion>
</Object>
example: circular combined with a segment motion produces an helice motion
<Object name="pivot">
     <Motion coord="pos-rot" frames="0-100/11">
             <Path type="circle">
                     <Param name="center">0;0;0</Param>
                     <Param name="axe">0;0;1</Param>
                     <Param name="radius">200</Param>
                     <Param name="begin">0</Param>
                     <Param name="end">180</Param>
             </Path>
             <Motion frames="0-100/11">
                     <Path type="AtoB">
                             <Param name="begin">0;0;0</Param>
                             <Param name="end">0;0;100</Param>
                     </Path>
             </Motion>
     </Motion>
</Object>
example: a circular follows a segement motion
<Object name="pivot">
     <Motion coord="pos" frames="0-50/11">
             <Path type="AtoB">
                     <Param name="begin">0;0;0</Param>
                     <Param name="end">0;-200;0</Param>
             </Path>
     </Motion>
     <Motion coord="pos-rot" frames="51-100/11">
             <Path type="circle">
                     <Param name="center">0;0;0</Param>
                     <Param name="axe">0;0;1</Param>
                     <Param name="radius">200</Param>
                     <Param name="begin">180</Param>
                     <Param name="end">270</Param>
             </Path>
     </Motion>
</Object>