Get all objects in the scene. Returns: A list of all objects in the scene.
()
| 74 | return armature |
| 75 | |
| 76 | def 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 | |
| 93 | def reset_base_scale_animation(obj): |
| 94 | """Reset the base scale of an object and its animation. |
no outgoing calls
no test coverage detected