I can't get bpy.ops.make_links_data to work with context overrides. When I select objects manually, it works fine, but the following doesn't:

    "active_object": source, 
    "object": source, 
    "selected_objects": [source, target]}, 

I would expect the objects given "selected_objects" to have the same modifiers as the object in "active_object" or the one in "object". This does not seem to happen. (I can't see anything happening at all.)

When I manually link the modifiers (which works), the line


appears in the scripting panel.

(This is in Blender 2.8.)

  • $\begingroup$ Could you provide more details what you are trying to do and what result is expected? $\endgroup$ – Andrew Patynko May 27 '19 at 12:13
  • $\begingroup$ I'm sorry. I've added some. $\endgroup$ – georch May 28 '19 at 18:14
  • $\begingroup$ I would recommend to use this approach https://blender.stackexchange.com/a/4883/50172 instead of using of operator. Also I have tested the proposed method on my side and it works $\endgroup$ – Andrew Patynko May 30 '19 at 12:20

Your Answer

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

Browse other questions tagged or ask your own question.