📅  最后修改于: 2022-03-11 15:00:35.757000             🧑  作者: Mango
import bpy
import os
path = os.path.dirname(__file__) + "/materials/materials1.blend\\Material\\"
material_name = "test_material1"
bpy.ops.wm.append(filename=material_name, directory=path)