I remove everything in the set at the start with Blender python. Corrected post: this first snippet removes all materials.
materialsInScene = list(bpy.data.materials)
for eachMat in materialsInScene:
The next code snippets remove all meshes and all objects.
meshesInScene = list(bpy.data.meshes)
for eachMesh in ...
Read from the original
For example sake have library "xxxx.blend", in it I have renamed a collection from "OLD" to "NEW", the previously linked collection "OLD" is in my blend but broken.
All the collection names in the library.
>>> lib = D.libraries['xxxx.blend']
>>> with D.libraries.load(lib....
Look at the library filepaths.
Iterate over the libraries, for any that do not exist in saved filepath, convert the filepath and reload.
from pathlib import Path
for lib in bpy.data.libraries:
p = Path(bpy.path.abspath(lib.filepath))
if not p.exists():
# convert filepath
Your expectations may be too high for a 4k image.
Your benchmark of 1 minute for the BMW is very good. Note, however, that the image is rendered with only 35 samples and at 50% size. If you increase the size to 100% the render time will quadruple! Increase the size to 400% and it will be multiplied by 16 again. That's 64 times longer for 400% than if the ...