The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+2 votes

It looks like this :

extends EditorScenePostImport
func post_import(scene):
    scene = scene as Spatial
    for item in scene.get_child(0).get_child(0).get_children(): = item.get_children[0].name

It results in error that items children don't exist, are null, empty, the same goes for child(0). Scene structure is simple - root/armature/skeleton/10 bone attachments/ 10 meshes. Only meshes are not recognized by script. I tried renaming items and bone attachments were renamed, so I got references correctly. Opening glb scene without import script shows that meshes are children of bone attachments.

Anybody understands this ? Please try to recreate it and help me with this

EDIT : SOLVED - I had one bone attachment without any mesh, sorry

Godot version godot 3.2 stable
in Engine by (8,188 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.