NyanNyan wrote:Not much, as seen in the video its very subtle, i was hoping to create something that rotated this ring:
http://imgur.com/p1SvR69
From the position in the image, maybe rotate clockwise slowly, accelerating and turning about 20 or 30 degrees before decelerating to a halt and going in the opposite direction, back to the starting position and repeat, turning anti clockwise. So no full rotation, but 20/30 degrees either way.
Try a
ValueRemainder=960 or even bigger. Also, to modify the speed, you can multiply or divide the Counter on the [MeasureAngle] section:
Formula=( 60 * sin (((( Counter / 12 ) % 60 ) * PI ) / 30 ))
And here's another tip: if you want to use this code for any image, you must determine the size of the image. To do that, use the
ImageSize plugin. Download the plugin (or easier, download and install the skin available on the above link, this will also install the plugin, then you can delete the skin, because the plugin will remain), then add these measures to the code:
Code: Select all
[MeasureWidth]
Measure=Plugin
Plugin=ImageSize
ImageName=#ImageName#
Dimension=Width
UpdateDivider=1
[MeasureHeight]
Measure=Plugin
Plugin=ImageSize
ImageName=#ImageName#
Dimension=Height
UpdateDivider=1
Also modify the [MeterImage]:
Code: Select all
[MeterImage]
Meter=ROTATOR
MeasureName=MeasureAngle
X=0
Y=0
W=(2*[MeasureWidth])
H=(2*[MeasureHeight])
ImageName=#ImageName#
OffsetX=([MeasureWidth]/2)
OffsetY=([MeasureHeight]/2)
StartAngle=0
RotationAngle=6.2832
ValueRemainder=...
DynamicVariables=1
And use for the image name either the #CURRENTPATH# variable:
Code: Select all
[Variables]
ImageName=#CURRENTPATH#Plane.jpg
either move the image into the resourrce folder and use this:
Code: Select all
[Variables]
ImageName=#@#Plane.jpg