TransWikia.com

What context does make_links_data need?

Blender Asked by georch on December 30, 2021

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:

bpy.ops.object.make_links_data({
    "active_object": source, 
    "object": source, 
    "selected_objects": [source, target]}, 
type='MODIFIERS')

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

bpy.ops.object.make_links_data(type='MODIFIERS')

appears in the scripting panel.

(This is in Blender 2.8.)

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP