2
$\begingroup$

Hi maybe someone can help me figure out how to script this, how do a make a library override of a collection using python. I have figured out how to do it on a single object bpy.ops.outliner.id_operation(type='OVERRIDE_LIBRARY_CREATE_HIERARCHY')

But I would like to simply give a collection object or name as input and then make the library override the contents of the collection. Just as this action.

enter image description here

$\endgroup$
1

1 Answer 1

0
$\begingroup$

Using this code is te solution to the problem:

import bpy

for obj in bpy.context.selected_objects:
    bpy.context.view_layer.objects.active = obj
    bpy.ops.object.make_override_library()
$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.