euroastar350
Resource contributor
- Messages
- 863
- Country

Hi guys,
I am in the process of finishing the FSX conversion of Owen Hewitt's Bell 206 to FSX native and one of the models is a TV news variant that has a movable camera. I have the original FS9 XML for the 3D objects. I have since converted it to FSX native XML in the modeldef file. Problem is that the code somewhat works, but the animations don't....I get a mouse hand to appear over the object. Here is the XML:
FS2004 code
FSX code
Once I have a fully working code, I can wrap up the models and it's off to the painter for textures and then release. Any help is appreciated.
FS9 XML was done originally by Owen Hewitt.
I am in the process of finishing the FSX conversion of Owen Hewitt's Bell 206 to FSX native and one of the models is a TV news variant that has a movable camera. I have the original FS9 XML for the 3D objects. I have since converted it to FSX native XML in the modeldef file. Problem is that the code somewhat works, but the animations don't....I get a mouse hand to appear over the object. Here is the XML:
FS2004 code
Code:
<part>
<name>camera_pan</name>
<animation>
<parameter>
<code>(L:camera_panPos, percent)</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Pan</tooltip_text>
<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
<callback_code>
(M:Event) 'LeftSingle' scmp 0 !=
if{
(L:camera_panX, position) s0 0 !=
if{
(L:camera_panPos, percent) (M:X) l0 <
if{ 5 + 100 min } els{ l0 (M:X) < if{ 5 - 0 max } }
(>L:camera_panPos, percent)
}
}
(M:X) (>L:camera_panX, position)
</callback_code>
</mouserect>
</part>
FSX code
Code:
<PartInfo>
<Name>Camera_Pan_01</Name>
<Animation>
<Parameter>
<Code>(L:Camera_Pan, percent) 100 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Camera Pan</TooltipText>
<MouseFlag>LeftSingle+LeftDrag+Wheel</MouseFlag>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 !=
if{
(L:camera_panX, position) s0 0 !=
if{
(L:camera_panPos, percent) (M:X) l0 <
if{ 5 + 100 min } els{ l0 (M:X) < if{ 5 - 0 max } }
(>L:camera_panPos, percent)
}
}
(M:X) (>L:camera_panX, position)
</CallbackCode>
</MouseRect>
</PartInfo>
Once I have a fully working code, I can wrap up the models and it's off to the painter for textures and then release. Any help is appreciated.
FS9 XML was done originally by Owen Hewitt.


