Importing glb files for use in gridmap

Godot Version

4.7

Question

So I’m trying to setup a gridmap 3D. What I have is a top level node3d that I’m trying to place a bunch of mesh instances under so I can export a gridmap. What I’d like to be able to do is highlight multiple glb files that I have in my project folder and drag and drop them under the top level node3d. Instead what happens is that they’re all imported with node3d > meshinstance3d as their scene structure. According to the docs, all the nodes under the top level node3d have to be of type meshinstance3d for the grid map to be set up correctly.

I can manually go in and change each scene’s structure, but it seems like they’re must be a better way? I tried changing the root type in the import settings to meshinstance3d but what happens is that then the structure of each scene is meshinstance3d > meshinstance3d with a warning about how the toplevel mesh is empty. Any help is appreciated.

You could use the “Actions …” under “Advanced Import” settings of each glb. There you can “Set Mesh Save Path” and you can select the Meshes you want to extract. They will be stored as *.res (You have to reimport the glb). These ones you can simply drag into one central node. The *,res will get updated with overriding the glb.

Thanks a bunch, just tried and looks like it works :+1: