January 12, 201016 yr Hello everybody,LeftScript and TopSript are optional scripts that evaluate the top left hand X and Y position of the element, and override the FloatPosition. I have write in a gauge an element : <Element id="Bug"> <LeftScript> expression_X </LeftScript> <TopScript> expression_Y </TopScript> <Image id="Image" Name="bitmap.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> <Axis>10,10</Axis> </Image> <Rotation id="Rotation"> <Expression id="Expression"> <script> expression_rotation </Script> </Expression> </Rotation> </Element>The position of bitmap.bmp don't move according to expression_X and expression_Y values, only the first one value is calculated. I verified with a GaugeString, there is no error in expression_X and expression_Y. The bitmap.bmp rotation is good with expression_rotation.My question : How can I do for using correctly LeftScript and TopSript ?RegardsClaude
January 14, 201016 yr Hi, LeftScript and TopScript actually work as you've already noticed. At gauge first load, script expression is evaluated and image placed fixed in accordance, no matter the result of the script varies within the normal gauge's cycle. But you can still use <Shift> on X and Y axis to dynamically move your bitmap.Regards,Tom
January 15, 201016 yr Hi Tom,The bitmap moves indeed as you explained using the <Shift> and <NonlinearityTable> functions. My new Gauge is now OK. Thank you very much for your help.Regards,Claude
January 16, 201016 yr Moderator Hi, LeftScript and TopScript actually work as you've already noticed. At gauge first load, script expression is evaluated and image placed fixed in accordance, no matter the result of the script varies within the normal gauge's cycle. But you can still use <Shift> on X and Y axis to dynamically move your bitmap.It's hard to find a more throughly useless set of <Tags>... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment