• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Animation stops at first KF

Messages
466
Country
ca-ontario
I've been playing with an animation today but for some reason I can't get it to progress beyond the first KF (after the start obviously) no matter what I do.

The animation is using a L:var and I've tried using a bool value and an enum value with no luck.

The animation is triggered by a left mouse click and it then proceeds to the first KF position and stops, clicking on the part again just steps it back to the start position.

The animation has both straight line and rotational components at various points during the complete animation but even testing with a simple straight line animation stops at the first KF.

Any ideas on what might be stopping the animation?
 
This is my last code attempt:

Code:
<PartInfo>
        <Name>NavA_cigar_lighter</Name>
     <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code>
                (L:cigar_lighter, bool) 10 *
                </Code>
                 <Lag>50</Lag>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <TooltipText>Cigar Lighter</TooltipText>
            <MouseFlags>LeftSingle</MouseFlags>
            <CallbackCode>
                (L:cigar_lighter, bool) ! (&gt;L:cigar_lighter, bool)
            </CallbackCode>
        </MouseRect>
  </PartInfo>

This is a test to see if I could get it past the first KF. This animation has the lighter push inwards, hold for a few frames and then pop back out but it moves in and then stops.

My original idea was over several hundred frames and got quite complex in terms of movement as I was just doing it for 'gits and shiggles' as the lighter went in, stayed in for a while then popped right out, bounced off the arm rest, ricocheted off the seat and finally bounced behind the rudder pedals! :yikes::D
 
Give this a try. I did it for a push button switch to test annunciator lights. Click the switch and it pushes in, stays there a few seconds, then returns to it's normal position.

Code:
<PartInfo>
    <Name>switch_annunciator_test</Name>
    <AnimLength>100</AnimLength>
     <Animation>
      <Parameter>
        <Code>(L:AnnunSwitch, bool) (P:local time, seconds) &gt; if{ 100 } els{ 0 }</Code>
        <Lag>1000</Lag>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>Hand</Cursor>
       <CallbackCode>(P:local time, seconds) 3 + (&gt;L:AnnunSwitch, bool)</CallbackCode>
    </MouseRect>
</PartInfo>
 
Thanks Robert, I changed it to a 6 second delay and it will work fine if I forget about the crazy stuff after it pops back out. ;)
 
Back
Top