I’m trying to make a slider knob that controls glareshield brightness, sort of like in the ASOBO_Lighting_knob_Avionics template but more of a lever interaction type.
Ive gotten the animation to work properly but cant find the code that would actually change brightness/potentiometer.
Here is the code I’m using below, any help would be greatly appreciated.
<Component ID="LIGHTING_Slider_Avionics" Node="LIGHTING_Slider_Avionics">
<UseTemplate Name="ASOBO_GT_Lever_DraggingYAxis_Gates">
<ANIM_NAME>LIGHTING_Slider_Avionics</ANIM_NAME>
<ANIM_LENGTH>30</ANIM_LENGTH>
<ANIM_CODE>(A:LIGHT POTENTIOMETER:15,percent over 100)</ANIM_CODE>
<DRAG_CODE>(M: DragPercent) 100 * (>A:LIGHT POTENTIOMETER:15,percent over 100)</DRAG_CODE>
</UseTemplate>
</Component>
Ive gotten the animation to work properly but cant find the code that would actually change brightness/potentiometer.
Here is the code I’m using below, any help would be greatly appreciated.
<Component ID="LIGHTING_Slider_Avionics" Node="LIGHTING_Slider_Avionics">
<UseTemplate Name="ASOBO_GT_Lever_DraggingYAxis_Gates">
<ANIM_NAME>LIGHTING_Slider_Avionics</ANIM_NAME>
<ANIM_LENGTH>30</ANIM_LENGTH>
<ANIM_CODE>(A:LIGHT POTENTIOMETER:15,percent over 100)</ANIM_CODE>
<DRAG_CODE>(M: DragPercent) 100 * (>A:LIGHT POTENTIOMETER:15,percent over 100)</DRAG_CODE>
</UseTemplate>
</Component>
