MCPcopy Index your code
hub / github.com/OpenMotionLab/MotionGPT / setup_scene

Function setup_scene

scripts/fbx_output.py:92–107  ·  view source on GitHub ↗
(model_path, fps_target)

Source from the content-addressed store, hash-verified

90
91# Setup scene
92def setup_scene(model_path, fps_target):
93 scene = bpy.data.scenes['Scene']
94
95 ###########################
96 # Engine independent setup
97 ###########################
98
99 scene.render.fps = fps_target
100
101 # Remove default cube
102 if 'Cube' in bpy.data.objects:
103 bpy.data.objects['Cube'].select_set(True)
104 bpy.ops.object.delete()
105
106 # Import gender specific .fbx template file
107 bpy.ops.import_scene.fbx(filepath=model_path)
108
109
110# Process single pose into keyframed bone orientations

Callers 1

process_posesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected