• 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 Light Animation

Messages
3
Country
unitedstates
I'm at my wits end trying to wrap my head around this. As an example, I want to set up 4 lights in a circular pattern (N, S, E, W) on an aircraft. I want to have these lights turn off and on in a circular pattern (direction doesn't matter for now). I don't want the lights to be associated with or controlled by any part of the aircraft, but just continuously run. I set this up in Blender using only the emmissive value (1.5 or 0). I set NLA tracks for all 4 lights and named them all the same i.e. "light1". (I read somewhere in my studies that you could name multiple tracks the same and they would all play by calling the one name in the xml file). The animation works fine in Blender but, for the life of me, I can't get it to work in MSFS 2020 (all of the lights stay continuously lit). I have tried writing all kinds of code but with no success. I have written code before in js, html, css, etc. so I'm not a complete newbie to coding but I'm really having a hard time understanding how to accomplish this in msfs. It would seem to be something to easily do which is why I'm so frustrated at this point. Can someone please help.
 
Maybe an image of your model could help to help

You can achieve what you want, or seems to, by using the msfs light parameters in Blender using the frequency and phase parameters

From the docs:
--------+++++++------
Frequency
This is the number of times that the light will "flash" in a second. Setting this to 0 means the light does not flash.


Duration
The duration of one flash in seconds.


Phase
The phase is the offset in seconds to the frequency. For example, if the frequency is set to 6 and the phase to 0, then there will be one flash every ten seconds and the flashing will start at zero seconds of the model being spawned (6 flash / 1 minute = one flash every 10 seconds). If the frequency is set to six and the phase is set to three, then there will be one flash every ten seconds but it won't start until three seconds after the model has spawned. This parameter is useful to synchronize or desynchronize several lights inside the same *.gltf or make the light flash at different intervals and give different effects.
----++++++++--------

Or, if you Need to do that with 3d models, you can use 4 different animations, and insert Keyframes accordingly, push everything in nla and add more animation Lines in the xml

Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
Thanks Mamu. I am using 3d models for the lights. I was using the emissive value to do this. I will experiment with these parameters. If I understand correctly, you are saying you CAN'T name multiple NLA tracks the same and have all of them work by calling one name from the xml?
 
Mm emissive Animation Is not supported, only location rotation (never tried with scale)
Also bones are supported (a PITA, yet supported)

Nla should have all strips with different name, because they are all different actions
And the xml Will call those actions
And since there Is not way to control when an animation starts, you should use Keyframes for your goal

Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
Back
Top