3 Steps .....
- Use tool mode
- Loop through SceneTree
- Create collisions
.
# Trimesh.gd
tool extends EditorScript
func _run():
for child in get_scene().get_children():
if child is MeshInstance:
child.create_convex_collision()
The above code assumes a few things like all 77 MeshInstances are a child of the scene root which you can get over by creating a recursive function to get all nodes.
In the Script Editor press File > Run