I'm trying to create an ADF tuner with knobs and dials representing units, tenths, hundreds and thousands.
I've used the same animation for the knobs and dials at 360 keyframes and a mousrect which seems to be ok. I'll post an example below (for the 100 units).
Where I'm struggling is with the <code> section of the animation.
The knobs and dials do turn on mouse clicks and wheel operation, but they're all over the map as far as reading the ADF setting.
Can anyone please explain the sequence after the (A:ADF ACTIVE FREQUENCY:1,KHz), eg what do the following mean in the code : "1000 / 10 % 36 * dnor" and why cant I get this to work !!!
Any help greatly appreciated.
Gary
<Animation name="knob_adf1_100" guid="2f86ea62-bfff-4d7f-a6c0-09e441e3ab7d" length="360" type="Sim" typeParam2="knob_adf1_100" typeParam="AutoPlay" />
<PartInfo>
<Name>knob_adf1_100</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:ADF ACTIVE FREQUENCY:1,KHz) 1000 / 10 % 36 * dnor</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>mrec_knob_adf1_100</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_ADF1_FREQ</TooltipID>
<MouseFlags>WheelDown+WheelUp+LeftDrag+LeftSingle</MouseFlags>
<CallbackJumpDragging>
<XMovement>
<Delta>10</Delta>
<EventIdInc>ADF_100_DEC</EventIdInc>
<EventIdDec>ADF_100_INC</EventIdDec>
</XMovement>
</CallbackJumpDragging>
</MouseRect>
</PartInfo>
I've used the same animation for the knobs and dials at 360 keyframes and a mousrect which seems to be ok. I'll post an example below (for the 100 units).
Where I'm struggling is with the <code> section of the animation.
The knobs and dials do turn on mouse clicks and wheel operation, but they're all over the map as far as reading the ADF setting.
Can anyone please explain the sequence after the (A:ADF ACTIVE FREQUENCY:1,KHz), eg what do the following mean in the code : "1000 / 10 % 36 * dnor" and why cant I get this to work !!!
Any help greatly appreciated.
Gary
<Animation name="knob_adf1_100" guid="2f86ea62-bfff-4d7f-a6c0-09e441e3ab7d" length="360" type="Sim" typeParam2="knob_adf1_100" typeParam="AutoPlay" />
<PartInfo>
<Name>knob_adf1_100</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:ADF ACTIVE FREQUENCY:1,KHz) 1000 / 10 % 36 * dnor</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>mrec_knob_adf1_100</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_ADF1_FREQ</TooltipID>
<MouseFlags>WheelDown+WheelUp+LeftDrag+LeftSingle</MouseFlags>
<CallbackJumpDragging>
<XMovement>
<Delta>10</Delta>
<EventIdInc>ADF_100_DEC</EventIdInc>
<EventIdDec>ADF_100_INC</EventIdDec>
</XMovement>
</CallbackJumpDragging>
</MouseRect>
</PartInfo>

