I can’t find anything in the API for this. How would I append a known Object/Material/etc. from a blend file with a known path? I’d ideally like to do this without the user’s interaction.
Is there any other way to fake this?
I can’t find anything in the API for this. How would I append a known Object/Material/etc. from a blend file with a known path? I’d ideally like to do this without the user’s interaction.
Is there any other way to fake this?
blend_dir = "C:/Path/To/Your/Folder/" # note the slash at the end!
blend_path = "filename.blend/Scene/" # filename, extension, datablock type (slash at the end!)
blend_datablock = "MyScene"
bpy.ops.wm.link_append(filepath="//" + blend_path + blend_datablock,
filename=blend_datablock,
directory=blend_dir + blend_path,
link=False)
Or multiple:
Thank you! I was starting to think it was impossible to do.