Motion - Maya
This use case shows how to apply motion on objets.
Segment Motion Motion Composed in Space Motion Composed in Time Rotate Motion Motion with sinus Velocity Spline Path Motion Spline Path Motion and Static Motion Circle Motion Composed Circle and Rotate Motion
Segment Motion
How to apply a Segment Motion on a trash.process
<Process id="mayaMotionSegment" type="3d" delegate="maya">
<Input creationId="trash"/>
<Object name="trash">
<Motion name="m1" coord="pos" frames="1-100/11">
<Path type="segment">
<Param name="begin">0;0;-40</Param>
<Param name="end">0;0;40</Param>
</Path>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Motion Composed in Space
How to compose two Segement Motions in space.process
<Process id="mayaMotionComposeSpace" type="3d" delegate="maya">
<Input creationId="trash"/>
<Object name="trash">
<Motion name="m1" coord="pos" frames="1-100/11">
<Motion name="m11" frames="1-100/11">
<Path type="segment">
<Param name="begin">40;0;0</Param>
<Param name="end">0;0;0</Param>
</Path>
</Motion>
<Path type="segment">
<Param name="begin">0;0;-40</Param>
<Param name="end">0;0;40</Param>
</Path>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Motion Composed in Time
How to compose two Segement Motions in Time.process
<Process id="mayaMotionComposeTime" type="3d" delegate="maya">
<Input creationId="trash"/>
<Object name="trash">
<Motion name="m1" coord="pos" frames="1-51/6">
<Path type="segment">
<Param name="begin">0;0;-50</Param>
<Param name="end">0;0;0</Param>
</Path>
</Motion>
<Motion name="m2" coord="pos" frames="51-100/6">
<Path type="segment">
<Param name="begin">0;0;0</Param>
<Param name="end">50;0;0</Param>
</Path>
<Velocity name="v1" type="square" frames="51-100"/>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Rotate Motion
How to apply a Rotate Motion on a trash.process
<Process id="mayaMotionRotate" type="3d" delegate="maya">
<Input creationId="trash"/>
<Object name="trash">
<Motion coord="rot" type="rotate" frames="1-100/11">
<Param name="begin">0;0;0</Param>
<Param name="end">0;180;0</Param>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Motion with sinus Velocity
How to set a sinus Velocity.process
<Process id="mayaMotionVelocity" type="3d" delegate="maya">
<Input creationId="trash"/>
<Object name="trash">
<Motion coord="rot" type="rotate" frames="1-100/31">
<Param name="begin">0;0;0</Param>
<Param name="end">0;180;0</Param>
<Velocity type="sinus" frames="1-100">
<Param name="repeat">2</Param>
<Param name="mirror">true</Param>
</Velocity>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Spline Path Motion
How to apply a Spline Path Motion on a jet. To tangent the path, the Motion coord value is "pos-rot"process
<Process id="mayaMotionPath" type="3d" delegate="maya">
<Input creationId="mayaBezier"/>
<Object name="jet">
<Motion coord="pos-rot" frames="1-100/11">
<Path name="bezier" type="bezier" update="true">
<Point name="0" in="-11.8;0;-6.0" out="-13.5;0;-3.2">-11.8;0;-6.0</Point>
<Point name="1" in="-14.7;1.3;1.1" out="-7.9;1.3;7.9">-11.3;1.3;4.5</Point>
<Point name="2" in="0.3;3.1;12.3" out="8.5;3.1;10.4">4.4;3.1;11.3</Point>
<Point name="3" in="9.3;4.5;8.7" out="9.9;4.5;6.0">9.9;4.5;6.0</Point>
</Path>
</Motion>
</Object>
</Process>
result
viewport
Specifications: Overview
Spline Path Motion and Static Motion
How to apply a Spline Path Motion on a camera composed with a Static Motion. The camera is over the jet. To tangent the path, the Spline Motion coord value is "pos-rot".process
<Process id="mayaMotionPathComposed" type="3d" delegate="maya">
<Input creationId="mayaBezier"/>
<Object name="jet">
<Motion coord="pos-rot" frames="1-100/11">
<Path ref="bezier"/>
</Motion>
</Object>
<Camera name="persp">
<Param name="shape.focalLength">15</Param>
<Motion coord="pos-rot" frames="1-100/11">
<Path ref="bezier"/>
<Motion coord="pos-rot" frames="1-100/11">
<Path ref="bezier"/>
<Param name="pos">0;2;-4</Param>
<Param name="rot">10;180;0</Param>
</Motion>
</Motion>
</Camera>
<Path name="bezier" type="bezier" update="true">
<Point name="0" in="-11.8;0;-6.0" out="-13.5;0;-3.2">-11.8;0;-6.0</Point>
<Point name="1" in="-14.7;1.3;1.1" out="-7.9;1.3;7.9">-11.3;1.3;4.5</Point>
<Point name="2" in="0.3;3.1;12.3" out="8.5;3.1;10.4">4.4;3.1;11.3</Point>
<Point name="3" in="9.3;4.5;8.7" out="9.9;4.5;6.0">9.9;4.5;6.0</Point>
</Path>
</Process>
result
Specifications: Overview
Circle Motion
How to apply a Circle Motion on a bull.process
<Process id="mayaMotionCircle" type="3d" delegate="maya">
<Input creationId="bull"/>
<Object name="bull">
<Motion coord="pos-rot" frames="1-100/11">
<Path type="circle">
<Param name="center">0;0;0</Param>
<Param name="axe">0;1;0</Param>
<Param name="radius">30</Param>
<Param name="begin">0</Param>
<Param name="end">180</Param>
</Path>
</Motion>
</Object>
</Process>
result
Specifications: Overview
Composed Circle and Rotate Motion
How to apply a composed Circle and Rotate Motion on a bull.process
<Process id="mayaMotionCircleRotate" type="3d" delegate="maya">
<Input creationId="bull"/>
<Object name="bull">
<Motion coord="pos-rot" frames="1-100/31">
<Path type="circle">
<Param name="center">0;0;0</Param>
<Param name="axe">0;1;0</Param>
<Param name="radius">30</Param>
<Param name="begin">0</Param>
<Param name="end">180</Param>
</Path>
<Motion type="rotate" frames="1-100">
<Param name="begin">0;0;0</Param>
<Param name="end">0;180;0</Param>
<Velocity type="sinus" frames="1-100">
<Param name="repeat">2</Param>
<Param name="mirror">true</Param>
</Velocity>
</Motion>
</Motion>
</Object>
</Process>
result
Specifications: Overview