2
$\begingroup$

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

$\endgroup$
  • $\begingroup$ what version you are using , I think link_append() has been replaced by link() and append ?! $\endgroup$ – Chebhou Apr 5 '15 at 23:55
  • $\begingroup$ I am using version 2.70a. Link is not included. Are you suggesting an update and use the new append function? $\endgroup$ – Josh Cox Apr 6 '15 at 0:01
  • $\begingroup$ I have tried Link() and append() before with no problem (just a simple test ), so If you have no reason to stick with that version , why not ? $\endgroup$ – Chebhou Apr 6 '15 at 0:04
  • $\begingroup$ Trying now....! $\endgroup$ – Josh Cox Apr 6 '15 at 0:06
  • $\begingroup$ @Chebhou - Post that as an answer so I can give you credit! $\endgroup$ – Josh Cox Apr 6 '15 at 0:17
2
$\begingroup$

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)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.