MCPcopy Create free account
hub / github.com/openai/point-e / find_materials

Function find_materials

point_e/evals/scripts/blender_script.py:254–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252
253
254def find_materials():
255 all_materials = set()
256 for obj in bpy.context.scene.objects.values():
257 if not isinstance(obj.data, (bpy.types.Mesh)):
258 continue
259 for mat in obj.data.materials:
260 all_materials.add(mat)
261 return all_materials
262
263
264def get_socket_value(tree, socket):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected