I have some 3d objects that I use Python code to rotate. In the Blender preview this works fine.
How can I export the animation caused by the Python code to gltf? The normal gltf export exposes the objects but not the animation.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
The glTF exporter is looking for animation keyframes in the NLA tracks for export. If you have custom Python code that's just writing to the object transform on the fly, that's not going to be found by the exporter. Your Python code will need to create actual animation keyframes, such that the exporter can read those keyframes and write them into the glTF file.