• 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.

MSFS20 Animation play once (loop=false) not working

Messages
234
Country
canada
Hi, any ideas why the following plays continuously in the loop instead of playing once? At least in the scenery editor.

XML:
<?xml version="1.0" ?>

    <ModelInfo guid="{42a07289-bac6-4fe7-0fdb-b245856b9a57}" version="1.1">

        <LODS>

            <LOD ModelFile="CYOW_Doors_LOD00.gltf" minSize="50"/>

            <LOD ModelFile="CYOW_Doors_LOD01.gltf"/>

        </LODS>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d00" loop="False" name="DoorL1" type="Standard" typeParam="Autoplay"/>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d01" loop="False" name="DoorL2" type="Standard" typeParam="Autoplay"/>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d02" loop="False" name="DoorL3" type="Standard" typeParam="Autoplay"/>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d03" loop="False" name="DoorR1" type="Standard" typeParam="Autoplay"/>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d04" loop="False" name="DoorR2" type="Standard" typeParam="Autoplay"/>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d05" loop="False" name="DoorR3" type="Standard" typeParam="Autoplay"/>

    </ModelInfo>
 
this should work

XML:
<?xml version="1.0" ?>
  <ModelInfo guid="{42a07289-bac6-4fe7-0fdb-b245856b9a57}" version="1.1">

       <LODS>
            <LOD ModelFile="CYOW_Doors_LOD00.gltf" minSize="50"/>
            <LOD ModelFile="CYOW_Doors_LOD01.gltf"/>
       </LODS>

        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d00" name="DoorL1" type="Standard" typeparam2="DoorL1" />
        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d01" name="DoorL2" type="Standard" typeparam2="DoorL2" />
        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d02" name="DoorL3" type="Standard" typeparam2="DoorL3" />
        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d03" name="DoorR1" type="Standard" typeparam2="DoorR1" />
        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d04" name="DoorR2" type="Standard" typeparam2="DoorR2" />
        <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d05" name="DoorR3" type="Standard" typeparam2="DoorR3" />

       <AnimGraph>
           <DefaultState name="CYOW_Doors_blend"/>
               <BlendTreeState name="CYOW_Doors_blend">
                <Animations>
                    <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d00" loop="False" speed="1.0"/>
                    <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d01" loop="False" speed="1.0"/>
                    <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d02" loop="False" speed="1.0"/>
                    <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d03" loop="False" speed="1.0"/>
                    <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d04" loop="False" speed="1.0"/>
                    <Animation guid="42a07289-811d-4fba-8eb2-abfc2d6e0d05" loop="False" speed="1.0"/>
                </Animations>
            </BlendTreeState>
        </AnimGraph>

    </ModelInfo>
 
Last edited:
this should work
Thanks! I did try something very similar but it didn't work somehow, but your example did, after I rebuilt the project and rendered the object again. I can now see that the animation is triggered only only once, when the object is loaded. I was hoping that it triggers every time new LOD is loaded (so I can open doors when hangar is large on screen, and close when it's getting smaller), but it's not the case, I suspected this much. So now I need to figure out how can I trigger this animation: ideally by proximity, or by some other factor, like a taxi light switch for example. Any thoughts?
 
Back
Top