MCPcopy Create free account
hub / github.com/Netflix/void-model / get_all_objects

Function get_all_objects

data_generation/scripts/blender_helper.py:76–91  ·  view source on GitHub ↗

Get all objects in the scene. Returns: A list of all objects in the scene.

()

Source from the content-addressed store, hash-verified

74 return armature
75
76def get_all_objects():
77 """Get all objects in the scene.
78
79 Returns:
80 A list of all objects in the scene.
81 """
82 objects = []
83 for obj in bpy.data.objects:
84 if obj.type != 'MESH':
85 continue
86 if obj.parent is not None and 'mixamo' in obj.name:
87 continue
88 if obj.type == 'MESH':
89 objects.append(obj)
90 objects.sort(key=lambda obj: obj.name)
91 return objects
92
93def reset_base_scale_animation(obj):
94 """Reset the base scale of an object and its animation.

Callers 2

extract_object_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected