Linked Questions

6
votes
1answer
8k views

How to link/append with a Python script? [duplicate]

I want to append an element from another Blend file by a script. I found the Blender operator bpy.ops.wm.append which should do what I want. However, the API documentation is a bit unclear: ...
2
votes
2answers
2k views

Append python script for Blender 2.8 [duplicate]

I'm trying to write a script to append an Object or a Collection from a blend file to a new file. Can someone please point what I'm doing wrong? ...
6
votes
1answer
1k views

Append group with Python API [duplicate]

I want to append a group with the Python API, like I would normally do with File > append. I already tested this solution: How to Link/Append a data-block using the Python API?, and this one: How to ...
2
votes
2answers
787 views

Load .blend file into Blender as Python Module [duplicate]

I am using Blender as a Python module. Now I am trying to load a scene into blender. Unfurtunately the obvious function bpy.ops.wm.open_mainfile(filepath) does not ...
1
vote
0answers
100 views

How to copy an object from one blend file to another via python? [duplicate]

I want to copy an object via python from one scene to another. Scene with the object: Scene where i want to copy it to:
0
votes
0answers
40 views

How to Link/Append world using the blender Python API? [duplicate]

I'm searching a way to append a World in blender Python. I read the reference in How to Link/Append a data-block using the Python API? but that is for group append. is there a way to make that work ...
0
votes
0answers
26 views

How to append a scene from an existing .blend file to the current .blend file? [duplicate]

I just want to append a scene (named "fred" which is the ONLY scene in the file) to the existing open blend file. Seems like this should be easy, but I can't find out how to do this. So, after the ...
0
votes
0answers
23 views

How to import from .blend specific scene.world correctly? [duplicate]

The procedure should be fairly simple but it is giving me a hard time. Example: ...
0
votes
0answers
22 views

BPY import/append .blend asset from another file? ( ideally by clicking a button) [duplicate]

How to automate the process in Python of importing any one out of 10 assets from another .blend file? (ideally by clicking a button) I am trying to use append, but I am not so sure about the correct ...
9
votes
2answers
3k views

Import object without bpy.ops.wm.link_append

Is it possible to import an object from a library file through Python without using bpy.ops.wm.link_append? I want an object to appear in ...
2
votes
2answers
1k views

Automatically Scale and Export All Files in Directory?

Is there a way to go through every .blend file in a directory and do the following with each: Open the file. Move the cursor to 0,0,0 Enter edit mode (there is ...
0
votes
2answers
1k views

Export material from Cycles for Cycles?

I saw this question and learned it's very tricky to export material from Cycles for other applications' use. So let me clarify: I only work with Blender. Previously while I was working with BI, I ...
1
vote
1answer
1k views

Import group from external blend file

I have a .blend file that has a house group in it: I'd like my script to be able to extract the house group from that file, then make duplicates of it in the current scene. I want to be able to ...
1
vote
1answer
1k views

load and change material with python script

My script is not functioning as I would like. I am appending a material from a file and the material is not adding to the material list. Second I am trying to change the generated ellipsoid to a ...
1
vote
1answer
420 views

How can I append an object from an external blender file using a relative path with Python?

How do I append a custom object from an external blender file using relative paths so I can pack the file with the addon? I can append the file easily with absolute path like this but I could fined ...

15 30 50 per page