Download the Plane Maker Manual - X-Plane
Download the Plane Maker Manual - X-Plane
Download the Plane Maker Manual - X-Plane
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.3. SLIDERS IN THE PANEL 73<br />
• Add a “command slider” to <strong>the</strong> instrument panel. This is labeled “but command slider” in<br />
<strong>the</strong> “buttons” folder of <strong>the</strong> panel design dialog’s instrument list (labeled 2 in Figure 5.1).<br />
• Set <strong>the</strong> cycle time for that slider to 10 seconds in <strong>the</strong> Sliders tab of <strong>Plane</strong> <strong>Maker</strong>’s Systems<br />
dialog box.<br />
If you have more than one slider in your instrument panel, you can figure out which number each<br />
one is assigned by opening <strong>the</strong> panel design dialog and pressing <strong>the</strong> Alt key (Option in Mac OS<br />
X). Small green numbers will appear on each duplicated instrument, as seen in Figure 5.3. For<br />
instance, in Figure 5.3, <strong>the</strong> cycle time for <strong>the</strong> slider on <strong>the</strong> far right would be set using <strong>the</strong> “#3<br />
time” parameter in <strong>the</strong> Systems dialog’s Sliders tab.<br />
Figure 5.3: Three sliders in an instrument panel, whose numbers are displayed by pressing <strong>the</strong> Alt<br />
(Option) key<br />
It is also possible to create an animation sequence for parts of <strong>the</strong> aircraft which you do not<br />
want tied to an actual switch in <strong>the</strong> instrument panel. For instance, you might want to animate<br />
<strong>the</strong> landing light housing unfolding from <strong>the</strong> wing when <strong>the</strong> lights are turned on. In this case, you<br />
would not want to tie <strong>the</strong> landing light cockpit switch to sim/cockpit2/switches/slider on because<br />
changing <strong>the</strong> switch would trigger <strong>the</strong> animation without actually turning on <strong>the</strong> landing lights!<br />
To account for this, <strong>the</strong> slider system allows you to pick any dataref as a “source” for a slider;<br />
<strong>the</strong> slider on datarefs are merely a default. Thus, in <strong>the</strong> case of <strong>the</strong> landing lights, you would simply<br />
need to choose <strong>the</strong> real landing light switch dataref (sim/cockpit2/switches/landing lights on) as<br />
<strong>the</strong> source for your sliders. Then, when <strong>the</strong> landing lights are turned on, <strong>the</strong> slider will be triggered<br />
and <strong>the</strong> landing lights will work as <strong>the</strong>y should.<br />
To select a custom dataref for a slider, simply open <strong>the</strong> Systems dialog’s Sliders tab, check <strong>the</strong><br />
box labeled “dataref” next to <strong>the</strong> slider which you would like to use, <strong>the</strong>n box next to <strong>the</strong> text field<br />
below <strong>the</strong> dataref checkbox. A dialog box will appear that allows you to choose which dataref you<br />
will link to.<br />
Note: If you are using custom-assigned sliders, you should begin with slider #24 and move to<br />
lower numbers as needed, since actual sliders in <strong>the</strong> instrument panel (but command slider) will be<br />
numbered beginning at 1.<br />
Then, in <strong>the</strong> case of <strong>the</strong> landing lights, you would set <strong>the</strong> sliders up this way:<br />
• In <strong>the</strong> instrument panel, <strong>the</strong>re would be a normal landing light switch.<br />
• Slider #24 would have a cycle time of 5 seconds, with <strong>the</strong> dataref checkbox on, and a dataref<br />
of “sim/cockpit2/ switches/landing lights on”.<br />
• In a misc. object for <strong>the</strong> aircraft <strong>the</strong>re would be a key-framed animation based on<br />
sim/flightmodel2/misc/ custom slider ratio[0] that animates <strong>the</strong> landing light housing.