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...
It is currently May 7th, 2024, 10:45 am
[SOLVED] Division Help ROUNDLINES
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
[SOLVED] Division Help ROUNDLINES
Last edited by Seahorse on November 12th, 2011, 2:47 pm, edited 1 time in total.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Division Help
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.
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.
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: Division Help
Thanks, I assumed I was doing something wrong not the meter, will add a calc and yes it was ROUNDLINES.