• 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 Exporting / Importing Animated Objects (not SimObjects)

Messages
150
Country
italy
Hello everybody! I got some issues here:

First of all, wandering in the Objects list I found a "businessman_idle" (or similar ;) ) which was a normal object (which I thought could only be static) with an idle animation.
I tried achieving the same result but I ended up making an animation and not being able neither to export nor to import ingame.

I suppose it would need some additional XML, but the only reference I found in the documentation is for SimObjects.

Plus when exporting from blender I get this error:


Traceback (most recent call last):
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\__init__.py", line 565, in execute
return gltf2_blender_export.save_ext_gltf(context, export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_export.py", line 58, in save_ext_gltf
json, buffer = __export_ext_gltf(export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_export.py", line 81, in __export_ext_gltf
__gather_ext_gltf(exporter, export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_export.py", line 90, in __gather_ext_gltf
active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather.py", line 40, in gather_gltf2
animations += __gather_animations(blender_scene, export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather.py", line 84, in __gather_animations
animations_, merged_tracks = gltf2_blender_gather_animations.gather_animations(_blender_object, merged_tracks, len(animations), export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather_animations.py", line 76, in gather_animations
animation = __gather_animation(blender_action, blender_object, export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather_animations.py", line 114, in __gather_animation
channels=__gather_channels(blender_action, blender_object, export_settings),
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather_animations.py", line 150, in __gather_channels
blender_action, blender_object, export_settings)
File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 65, in wrapper_cached
result = func(*args)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather_animation_channels.py", line 43, in gather_animation_channels
groups = __get_channel_groups(blender_action, blender_object, export_settings)
File "C:\Users\jmain\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MSFSToolkit\exporter\exp\gltf2_blender_gather_animation_channels.py", line 319, in __get_channel_groups
rotation, rotation_modes = get_rotation_modes(target_property)
ValueError: too many values to unpack (expected 2)

location: <unknown location>:-1

What I am asking now is...does anybody have a quick walkthrough on how to succesfully export and import objects with an idle animation into the sim? Thank you so much <3
 
The Plugin doesn’t work with 2.9. Use the Blender 2.83 LTS package which has just been released.
 
thanks for the heads up! Will I have any issues opening projects made in 2.9 with 2.83? I ain't a pro modeller at all :D started with blender 2 weeks and a half ago and it took me ages to achieve just a few seconds animation :D
 
I have no idea. I only started learning Blender a few weeks ago. I think as long as you haven’t used anything new which is exclusive to 2.9 it should be ok.
 
I have no idea. I only started learning Blender a few weeks ago. I think as long as you haven’t used anything new which is exclusive to 2.9 it should be ok.

Aight thanks! Still, one question isn't clear. Do I need additional xmls for Animations? In the documentation it says something about it but I have no SimObject sample in the sample library and yeah, documentation somehow sucks :D
 
Back
Top