2

What:

I am trying to append an object in a .blend file using.

How:

TheObject="SINGLEBATTWIRE"
Thepath="B:/........../SINGLEBATTWIRE.blend/Object/SINGLEBATTWIRE"
Thedirectory="B:/........../SINGLEBATTWIRE.blend/Object/"

bpy.ops.wm.link_append(link=False, filepath=Thepath, 
directory=Thedirectory, filename=TheObject)

Problem:

The import works fine, but it is linked and can’t be moved. This is the result I get.

enter image description here

Current Resolutions:

If I click the button beside the objects name it fixes the problem, but I need to append many objects and this would take forever. If I go to File-Append and find the object, it works great and I have this result.

enter image description here

Josh Cox
  • 123
  • 4

1 Answers1

2

The bpy.ops.wm.link_append() function has been replaced by the two link() and append() functions and they can be used the same way : Example :

import bpy

directory = "C:/folder/myfile.blend/Object/"
objname ='Cube'

bpy.ops.wm.append(directory=directory, filename=objname, link=False)
Chebhou
  • 19,533
  • 51
  • 98