Page MenuHome

Appending objects via Python API does not work under Linux
Closed, ArchivedPublic

Description

System Information
Linux


Blender Version
Broken: 2.76 48f7dd6
Worked: 2.75

Short description of error
Appending objects from files via Python (bpy.ops.wm.append) doesn't work under Linux.

Exact steps for others to reproduce the error
Open appending.blend and execute script. Monkey should be appended from other file (works in windows) and previous Blender versions.

Event Timeline

M Z (lemi) raised the priority of this task from to 90.
M Z (lemi) updated the task description. (Show Details)
M Z (lemi) added a project: BF Blender.
M Z (lemi) edited a custom field.
M Z (lemi) added a subscriber: M Z (lemi).
Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Oct 23 2015, 5:25 AM

This isn't a bug, it works, just change the \\ to /. or use Python's os.sep.

Its recommended not to use bpy.ops.wm.append from Python.
Use direct library access instead:

http://www.blender.org/api/blender_python_api_2_76_release/bpy.types.BlendDataLibraries.html#bpy.types.BlendDataLibraries.load