On Sat, 2007-01-06 at 19:40 -0800, syd wrote:
> Hi again ,
> Im adding the pick animation to the A6M2 , SO much easier !
> I can only get the >property-assign< to work , but not
> >property-adjust<
> or nasal scripts ... I want to increment / decrement a property. Is
> this being worked on / not implemented yet ....
> Or am I rushing things or doing it all wrong ?
> Cheers,
> Syd
Syd,
I was wondering if I was rushing things, too. This is a working example
I came up with today. It controls a knob to adjust instrument lighting.
I split the panel in half behind the knob so if you click to the left of
the knob it decreases and if you click to the right it increases. The
knob rotates for visual feedback.
<animation>
<type>pick</type>
<object-name>flt-inst-up</object-name>
<binding>
<command>property-adjust</command>
<property>controls/lighting/instruments-norm</property>
<step>0.1</step>
<min>0</min>
<max>1</max>
<wrap>0</wrap>
</binding>
</animation>
<animation>
<type>pick</type>
<object-name>flt-inst-dwn</object-name>
<binding>
<command>property-adjust</command>
<property>controls/lighting/instruments-norm</property>
<step>-0.1</step>
<min>0</min>
<max>1</max>
<wrap>0</wrap>
</binding>
</animation>
<animation>
<type>rotate</type>
<object-name>knob-fltinst</object-name>
<property>controls/lighting/instruments-norm</property>
<factor>-300</factor>
<offset>-0.5</offset>
<center>
<x-m> 0.009929</x-m>
<y-m>-0.272024</y-m>
<z-m> 0.260513</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel