So I output a motion to an XML file using the Export Motion XML command. Then I applied it to a new graphic, and it came out wrong. After 323 frames of motion, the graphic is now at the wrong position, about 15 pixels to the left of where it should be.
When creating the animation, I had “snap to pixels” turned on, so every position of the source graphic is at a round number. When I look at the values in the generated XML file, it’s full of sequences like this:
…
10.1
16.15
20.2
25.25
…
So what’s going on here? How do I get the XML Motion to actually apply the motion accurately?
Added:
Here’s and example of what the exported code looks like.
<Motion duration="26" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="12" x="-7.95" y="192" scaleX="1" scaleY="1" rotation="0" elementType="graphic" symbolName="Guy">
<dimensions>
<geom:Rectangle left="-16" top="-32" width="32" height="32"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.003124999999999989" y="2"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" blendMode="gradientBevelFilter" firstFrame="7"/>
<Keyframe index="1" blendMode="gradientBevelFilter" firstFrame="6" x="5.050000000000001"/>
<Keyframe index="2" blendMode="gradientBevelFilter" firstFrame="7" x="10.1"/>
<Keyframe index="3" blendMode="gradientBevelFilter" firstFrame="6" x="16.15" y="1"/>
<Keyframe index="4" blendMode="gradientBevelFilter" firstFrame="7" x="20.2" y="0"/>
<Keyframe index="5" blendMode="gradientBevelFilter" firstFrame="6" x="25.25"/>
<Keyframe index="6" blendMode="gradientBevelFilter" firstFrame="7" x="30.3"/>
<Keyframe index="7" blendMode="gradientBevelFilter" firstFrame="6" x="35"/>
<Keyframe index="8" blendMode="gradientBevelFilter" firstFrame="7" x="40.400000000000006"/>