- Messages
- 106
- Country

Hi Guys,
i have a rotated part with keframes 0-100 (see picture).
I wish that this part is not at "0" when it is loaded. It should begin with "50".
how i must write the code.
the part must start in the middle at "50" and rotate left or right with the mouse wheel.
code modeldef
code gauge
example-picture
Mijo
i have a rotated part with keframes 0-100 (see picture).
I wish that this part is not at "0" when it is loaded. It should begin with "50".
how i must write the code.
the part must start in the middle at "50" and rotate left or right with the mouse wheel.
code modeldef
Code:
<PartInfo>
<Name>sx16_lr</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>50 (L:lr_sx16,percent) 100 *</Code>
</Parameter>
</Animation>
</PartInfo>
code gauge
Code:
<Area Left="166" Top="123" Width="21" Height="22">
<Tooltip>LEFT SX-16</Tooltip>
<Cursor Type="DownArrow"/>
<Click Repeat="Yes">
(L:lr_sx16, percent) 0 > if{ (L:lr_sx16, percent) -- (>L:lr_sx16, percent) }
</Click>
</Area>
<Area Left="202" Top="140" Width="21" Height="22">
<Tooltip>RIGHT SX-16</Tooltip>
<Cursor Type="UpArrow"/>
<Click Repeat="Yes">
(L:lr_sx16, percent) 100 < if{ (L:lr_sx16, percent) ++ (>L:lr_sx16, percent) }
</Click>
</Area>
example-picture
Mijo
