Hey guys,
following situation: I have created a FMC model + display gauge and now want to animate the LSK buttons. The animation is already done and customly defined in my own modeldef.xml but I just can't seem to get my Mouse Rect to work to click on the LSK Button.
I use Blender 2.8 as well as the Blender2FSX/P3D plugin. The animation and the attachpoint show up in the plugin section but the Mouse Rect attachpoint does not work in the sim.
This is my code for now:
So if anyone knows how to create a custom Mouse Rect attachpoint to control a custom animation I would be very, very thankful.
Greetings,
Max
following situation: I have created a FMC model + display gauge and now want to animate the LSK buttons. The animation is already done and customly defined in my own modeldef.xml but I just can't seem to get my Mouse Rect to work to click on the LSK Button.
I use Blender 2.8 as well as the Blender2FSX/P3D plugin. The animation and the attachpoint show up in the plugin section but the Mouse Rect attachpoint does not work in the sim.
This is my code for now:
XML:
<?xml version="1.0" encoding="utf-8"?>
<ModelInfo>
<Animation name="B737_FMCL_LSK1_anim" guid="4275280d-ecad-4de8-83b7-c89105314730" length="50" type="Sim" typeParam2="B737_FMCL_LSK1_anim" typeParam="AutoPlay"/>
<PartInfo>
<Name>B737_FMCL_LSK1_anim</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:B737_FMCL_LSK1, bool) 50 *</Code>
<Lag>50</Lag>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>B737_FMCL_LSK1_rect</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>LSK1</TooltipText>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == if{ (M:X) (>L:B737_FMCL_LSK1, bool) }
</CallbackCode>
</MouseRect>
</PartInfo>
</ModelInfo>
So if anyone knows how to create a custom Mouse Rect attachpoint to control a custom animation I would be very, very thankful.
Greetings,
Max


