- Messages
- 468
- Country

I've just spent hours trying to get a Mhz dial on my COM radio to animate and it simply refuses to play fair. 
I've reset the transforms, checked it was animated in 'local' mode, checked the pivot point settings and re-animated multiple times with no luck.
I am trying to use the stock COM1 code in the modeldef file shown here:
I have animated the part over 360 frames and I have tried adding key frames as follows:
0, 180, 360 frames
and
0, 90, 180, 270, 360 frames
Neither of the above work.
For reference the part is a flat disc viewed face on (like looking at the face of a coin) and the tuning digits are visible in a cut-out in the radio body as the disc rotates counter-clockwise.
What I am trying to do is to get the disc to rotate CCW by one whole increment per mouse/wheel click (which equates to a rotational angle of 18.94736842105263° - I used 18.95° when placing the digits and that worked out well).
In FSX the disc does not move at all but the mouse-over tool-tip does show the Mhz value going up/down as I click or wheel over the part and checking it against the default 2D BK NAV/COM confirms the digit changes.
Again for reference here is the [Radios] section from the aircraft.cfg file:
[Radios]
// availiable, standby frequency, has glide slope
Audio.1= 1
Com.1= 1, 0
Com.2= 1, 0
Nav.1= 1, 0, 1
Nav.2= 1, 0, 0
Adf.1= 1
Adf.2= 1
Transponder.1= 1
Marker.1= 1
Any ideas where I'm going wrong or what may be stopping the animation from working?
I've reset the transforms, checked it was animated in 'local' mode, checked the pivot point settings and re-animated multiple times with no luck.
I am trying to use the stock COM1 code in the modeldef file shown here:
Code:
<PartInfo>
<Name>knob_com_MHz0</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:COM1 STANDBY FREQUENCY, MHz) 118 - flr dnor</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>hand</Cursor>
<TooltipID>TOOLTIPTEXT_COMM1_FREQ_ACTIVE_STANDBY</TooltipID>
<MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
<CallbackJumpDragging>
<XMovement>
<Delta>7</Delta>
<EventIdInc>COM_RADIO_WHOLE_INC</EventIdInc>
<EventIdDec>COM_RADIO_WHOLE_DEC</EventIdDec>
</XMovement>
</CallbackJumpDragging>
</MouseRect>
</PartInfo>
I have animated the part over 360 frames and I have tried adding key frames as follows:
0, 180, 360 frames
and
0, 90, 180, 270, 360 frames
Neither of the above work.
For reference the part is a flat disc viewed face on (like looking at the face of a coin) and the tuning digits are visible in a cut-out in the radio body as the disc rotates counter-clockwise.
What I am trying to do is to get the disc to rotate CCW by one whole increment per mouse/wheel click (which equates to a rotational angle of 18.94736842105263° - I used 18.95° when placing the digits and that worked out well).
In FSX the disc does not move at all but the mouse-over tool-tip does show the Mhz value going up/down as I click or wheel over the part and checking it against the default 2D BK NAV/COM confirms the digit changes.
Again for reference here is the [Radios] section from the aircraft.cfg file:
[Radios]
// availiable, standby frequency, has glide slope
Audio.1= 1
Com.1= 1, 0
Com.2= 1, 0
Nav.1= 1, 0, 1
Nav.2= 1, 0, 0
Adf.1= 1
Adf.2= 1
Transponder.1= 1
Marker.1= 1
Any ideas where I'm going wrong or what may be stopping the animation from working?







