It is currently May 7th, 2024, 10:45 am

[SOLVED] Division Help ROUNDLINES

Get help with creating, editing & fixing problems with skins
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

[SOLVED] Division Help ROUNDLINES

Post by Seahorse »

Variable PixelSize=16

I want LineLength to be half of PixelSize, i.e. LineLength=8 but I am not getting a formula that gives me 8, and yes DynamicVariables=1.

Having poked through skins I have with maths all looks good for these to work, except they don't spit out 8, I tried more complicated versions, but assume I am missing something simple.

LineLength=#PixelSize#/2
LineLength=(#PixelSize#/2)
LineLength=((#PixelSize#)/(2))

As always, I am sure I am doing something dumb, I just can't figure out what it is... :handtohead:
Last edited by Seahorse on November 12th, 2011, 2:47 pm, edited 1 time in total.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Division Help

Post by jsmorley »

I suspect that Meter=Roundline is one of the places where you can't use a formula in the settings.

You could do:

[Variables]
SomeVar=25

[MeasureCalc]
Measure=Calc
Formula=(#SomeVar#*2)
DynamicVariables=1

[MeterRoundLine]
Meter=ROUNDLINE
MeasureName=SomeMeasure
StartAngle=4.712
RotationAngle=6.283
LineLength=[MeasureCalc]
DynamicVariables=1

Then if you dynamically change #SomeVar#, the meter will follow.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Division Help

Post by Seahorse »

Thanks, I assumed I was doing something wrong not the meter, will add a calc and yes it was ROUNDLINES.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt