CP5 - W7 - TIPS - Motion paths
I want to give back a little to this community, I got a lot of answers on my questions. And I am greatfull for the help.
I wanted to animate an image to come up from the bottom, but could not find the right animation path. So...
Follow this guide to learn how.
You can do your own motion paths!
- Import an image
- Go to Effects
- press the f(x) symbol at the bottom right corner of the effect
- go to browse
- motion paths
- right-click on LeftToRight.xml and choose copy
- paste it in again and you will have something like LeftToRight-copy.xml
- right-click on LeftToRight-copy.xml and chose to edit, preferebly in notepad
The code you will see
<Motion duration="60" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="51.7" y="75.2" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" instanceName="abc" symbolName="Symbol 1">
<dimensions>
<geom:Rectangle left="-97" top="-50" width="97" height="50"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5025773195876289" y="0.505"/>
</transformationPoint>
</Source>
</source>
<effect_config effect_type="motion_path">
</effect_config>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="59" tweenSnap="true" tweenSync="true" x="400." y="0">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
</Motion>
The code you easy can undestand
In the begining it says duration="60"
<Motion duration="60" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
More below in the code you see:
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="59" tweenSnap="true" tweenSync="true" x="400." y="0">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
0 to 59 is 60 steps
You can by altering these values choose how long an object should move.
Examples:
- Left to right: tweenSync="true" x="400." y="0"
- Right to left: tweenSync="true" x="-400." y="0"
- Top to bottom: tweenSync="true" x="0." y="400"
- Bottom to top: tweenSync="true" x="0." y="-400"
- Mov to left lowe corner : tweenSync="true" x="400." y="400"
Continue with task
- Change the settings in your file LeftToRight-copy.xml and choose to save and close.
- Rename LeftToRight-copy.xml to for instanse TopToBottom.xml
- choose that path and animate your image
- Preview in browser (F12)
Thats it
you can do it!
// Daniel