17 lines
636 B
GDScript
17 lines
636 B
GDScript
extends SceneTree
|
|
func _initialize():
|
|
var scene=load("res://art/succubus/succubus_v01.glb").instantiate()
|
|
root.add_child(scene)
|
|
walk(scene)
|
|
scene.queue_free()
|
|
quit()
|
|
func walk(node):
|
|
if node is AnimationPlayer:
|
|
print("ASSET_ANIMATIONS ",node.name," ",node.get_animation_list())
|
|
for name in node.get_animation_list():
|
|
var a=node.get_animation(name)
|
|
print(name," length=",a.length," tracks=",a.get_track_count())
|
|
if node is Skeleton3D:print("ASSET_SKELETON ",node.get_bone_count())
|
|
if node is MeshInstance3D:print("ASSET_MESH ",node.name," surfaces=",node.mesh.get_surface_count())
|
|
for c in node.get_children():walk(c)
|