<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <path>alt.ac</path>
 
  <animation>
    <object-name>ALTface</object-name>
    <object-name>ALTbezel</object-name>
    <object-name>needle100</object-name>
    <object-name>needle1000</object-name>
    <object-name>needle10000</object-name>
    <object-name>inhg</object-name>
    <object-name>InhgKnob</object-name>
  </animation>

 <animation>
   <type>material</type>
   <object-name>ALTface</object-name>
   <object-name>needle100</object-name>
   <object-name>needle1000</object-name>
   <object-name>needle10000</object-name>
   <object-name>inhg</object-name>
   <condition>
     <not><property>/sim/rendering/rembrandt/enabled</property></not>
   </condition>
   <emission>
     <red>   0.50 </red>
     <green> 0.25 </green>
     <blue>  0.25 </blue>
    <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
   </emission>
 </animation>

  <animation>
    <type>material</type>
    <object-name>ALTbezel</object-name>
    <object-name>InhgKnob</object-name>
    <condition>
      <not><property>/sim/rendering/rembrandt/enabled</property></not>
    </condition>
    <emission>
      <red>   0.007 </red>
      <green> 0.007 </green>
      <blue>  0.007 </blue>
      <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
    </emission>
  </animation>

  <animation>
    <name>BackLightAnimation</name>
    <type>light</type>
    <light-type>spot</light-type>
    <object-name>backlight</object-name>
    <position>
      <x> 0.02 </x>
      <y> 0.00 </y>
      <z>-0.05 </z>
    </position>
    <direction>
      <x> -1.0 </x>
      <y>  0.0 </y>
      <z>  1.0 </z>
    </direction>
    <ambient>
      <r>  0.0 </r>
      <g>  0.0 </g>
      <b>  0.0 </b>
      <a>  1.0 </a>
    </ambient>
    <diffuse>
      <r>  0.5 </r>
      <g>  0.404 </g>
      <b>  0.2 </b>
      <a>  1.0 </a>
    </diffuse>
    <specular>
      <r>  0.0 </r>
      <g>  0.0 </g>
      <b>  0.0 </b>
      <a>  1.0 </a>
    </specular>
    <dim-factor>
      <property>systems/electrical/outputs/instrument-lights</property>
      <!-- optional begin -->
      <factor>0.3</factor>
      <offset>0</offset>
      <min>0</min>
      <max>1</max>
      <!-- optional end -->
    </dim-factor>
    <attenuation>
      <c>  0.2 </c>
      <l>  0.2 </l>
      <q>  0.4 </q>
    </attenuation>
    <exponent>  8.0 </exponent>
    <cutoff>   48.0   </cutoff>
    <near-m>    0.0   </near-m>
    <far-m>     0.09 </far-m>
  </animation>

  <animation>
    <type>select</type>
    <object-name>BackLightAnimation</object-name>
    <condition>
      <and>
        <property>controls/electric/battery-switch</property>
        <property>sim/rendering/rembrandt/enabled</property>
      </and>
    </condition>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>needle100</object-name>
    <property>instrumentation/altimeter/indicated-altitude-ft</property>
    <factor> 0.36 </factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle1000</object-name>
    <property>instrumentation/altimeter/indicated-altitude-ft</property>
    <factor> 0.036 </factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle10000</object-name>
    <property>instrumentation/altimeter/indicated-altitude-ft</property>
    <factor> 0.0036 </factor>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>inhg</object-name>
    <property>instrumentation/altimeter/setting-inhg</property>
    <interpolation>
      <entry><ind> 31.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 27.5 </ind><dep> 350 </dep></entry>
    </interpolation>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>InhgKnob</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <interval-sec>0.1</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/altimeter/setting-inhg</property>
        <step>  0.01 </step>
        <min>  27.50 </min>
        <max>  31.00 </max>
        <wrap>  0.00 </wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>InhgKnob</object-name>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <interval-sec>0.1</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/altimeter/setting-inhg</property>
        <step> -0.01 </step>
        <min>  27.50 </min>
        <max>  31.00 </max>
        <wrap>  0.00 </wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>InhgKnob</object-name>
    <action>
      <button>3</button>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/altimeter/setting-inhg</property>
        <step> 0.01 </step>
        <min> 27.50 </min>
        <max> 31.00 </max>
        <wrap> 0.00 </wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>InhgKnob</object-name>
    <action>
      <button>4</button>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/altimeter/setting-inhg</property>
        <step> -0.01 </step>
        <min>  27.50 </min>
        <max>  31.00 </max>
        <wrap>  0.00  </wrap>
      </binding>
    </action>
  </animation>

</PropertyList>
