I have converted my FSX/P3D project into MSFS and have most of the animations working. My one issue is with the attitude ball animation. I updated the xml I used within P3D to the newer MSFS one using the "Here's how to write you own ModelBehavior code." found within this site. Most of my other gauges are working pretty good except the attitude indicator. At first it was animated like the P3D one, 0-360 for both pitch and bank (values - 180/90/0/-90/-180 // -180/-90/0/90/180 set on frames 0-90-180-270-360). This works fine in P3D using the below code from modeldef.xml but when used in MSFS the bank goes all over the place with it sticking/stopping/going. Sometimes it will roll nicely until it reaches back to level, stops for a bit and then continues if you continue your roll.
Does anyone have an example of their attitude indicator they would like to share or help with this? Maybe my animation number in Blender are wrong.
XML:
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_NAME>attitude_indicator_bank</ANIM_NAME>
<ANIM_CODE>(A:ATTITUDE CAGE,bool) 1 < if{ (A:ATTITUDE INDICATOR BANK DEGREES, degree) 180 + } els{ 45 }</ANIM_CODE>
<ANIM_LAG>0</ANIM_LAG>
<ANIM_LENGTH>360</ANIM_LENGTH>
</UseTemplate>
<UseTemplate Name="ASOBO_GT_Anim_Code">
<ANIM_NAME>attitude_indicator_pitch</ANIM_NAME>
<ANIM_CODE>(A:ATTITUDE CAGE,bool) 1 < if{ (A:ATTITUDE INDICATOR PITCH DEGREES, degree) } els{ 45 }</ANIM_CODE>
<ANIM_LAG>0</ANIM_LAG>
<ANIM_LENGTH>360</ANIM_LENGTH>
</UseTemplate>
Does anyone have an example of their attitude indicator they would like to share or help with this? Maybe my animation number in Blender are wrong.