Here's a snippet of code to convert the inhg property value to mbar and then use this to rotate the left-most digit on the mbar display. The code doesn't seem to work; Is this the correct usage of the <scale> tag? I can't find an example of its use for a 3D cockpit.
<animation> <type>textranslate</type> <object-name>mb_digit_4</object-name> <property>/instrumentation/altimeter/setting-inhg</property> <scale>33.86</scale> <factor>.0001</factor> <step>1000</step> <!--<scroll>20</scroll>--> <axis> <x>0</x> <y>1</y> <z>0</z> </axis> </animation> Thanks again, Vance -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boris Koenig Sent: Thursday, November 18, 2004 8:27 AM To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Nasal Roy Vegard Ovesen wrote: > On Thursday 18 November 2004 01:33, Boris Koenig wrote: > >>sure, right - but putting nasal scripts into "module" tags like in other >>PropertyList encoded XML files isn't yet supported natively. >> >>Also, I don't think Vance wanted to link the Nasal script to a >>particular action ? > > > I don't want to lecture Vance about how he should go about doing the InHG to > mBar conversion, but I think that his Nasal script should _only_ be executed > when the altimeter setting is changed. > > IMHO it would be simpler to use the scale tag. Sounds indeed very reasonable and less complicated if the conversion is the only thing he needs to be done. ------- Boris _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d