clock.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>clock.ac</path>
  4. <animation>
  5. <type>rotate</type>
  6. <object-name>SecondHand</object-name>
  7. <expression>
  8. <prod>
  9. <property>/instrumentation/clock/indicated-sec</property>
  10. <value>6</value>
  11. </prod>
  12. </expression>
  13. <axis>
  14. <x>-1</x>
  15. <y>0</y>
  16. <z>0</z>
  17. </axis>
  18. </animation>
  19. <animation>
  20. <type>rotate</type>
  21. <object-name>MinuteHand</object-name>
  22. <expression>
  23. <prod>
  24. <sum>
  25. <property>/instrumentation/clock/indicated-min</property>
  26. <div>
  27. <property>/sim/time/real/second</property>
  28. <value>60</value>
  29. </div>
  30. </sum>
  31. <value>6</value>
  32. </prod>
  33. </expression>
  34. <axis>
  35. <x>-1</x>
  36. <y>0</y>
  37. <z>0</z>
  38. </axis>
  39. </animation>
  40. <animation>
  41. <type>rotate</type>
  42. <object-name>HourHand</object-name>
  43. <expression>
  44. <prod>
  45. <sum>
  46. <property>/instrumentation/clock/local-hour</property>
  47. <div>
  48. <property>/instrumentation/clock/indicated-min</property>
  49. <value>60</value>
  50. </div>
  51. </sum>
  52. <value>30</value>
  53. </prod>
  54. </expression>
  55. <axis>
  56. <x>-1</x>
  57. <y>0</y>
  58. <z>0</z>
  59. </axis>
  60. </animation>
  61. <!-- dimming -->
  62. <animation>
  63. <name>all</name>
  64. <object-name>Face</object-name>
  65. <object-name>SecondHand</object-name>
  66. <object-name>MinuteHand</object-name>
  67. <object-name>HourHand</object-name>
  68. </animation>
  69. <animation>
  70. <type>material</type>
  71. <object-name>Face</object-name>
  72. <emission>
  73. <red> 0.8 </red>
  74. <green> 0.8 </green>
  75. <blue> 1.0 </blue>
  76. </emission>
  77. </animation>
  78. <animation>
  79. <type>material</type>
  80. <object-name>all</object-name>
  81. <condition>
  82. <property>systems/electrical/outputs/instrument-lights-norm</property>
  83. <equals>
  84. <property>controls/lighting/instrument-lights-selection</property>
  85. <value>0</value>
  86. </equals>
  87. </condition>
  88. <emission>
  89. <red> 0.8 </red>
  90. <green> 0.8 </green>
  91. <blue> 1.0 </blue>
  92. <factor>0.5</factor>
  93. </emission>
  94. </animation>
  95. <animation>
  96. <type>material</type>
  97. <object-name>all</object-name>
  98. <condition>
  99. <greater-than>
  100. <property>controls/lighting/instrument-lights-selection</property>
  101. <value>0</value>
  102. </greater-than>
  103. </condition>
  104. <emission>
  105. <red> 0.8 </red>
  106. <green> 0.8 </green>
  107. <blue> 1.0 </blue>
  108. <factor-prop>systems/electrical/outputs/instrument-lights-norm</factor-prop>
  109. </emission>
  110. </animation>
  111. </PropertyList>