I can’t figure out how do to a library override on the rig called rig_Manatea_BODY in Python. Anyone?
Well, I suck at coding and largely have no idea without getting AI to write the code, but for what it’s worth my basic thoughts would be a two step process.
First make the collection override: bpy.ops.object.make_override_library(collection=0 )
then I guess do the same to the armature rig object:
bpy.ops.ui.override_idtemplate_make()
But of course I could be way off and totally wrong.
I’m surprised someone with way more coding knowledge hasn’t replied.
I’m not sure if you mean the rig only or the whole collection… so this :
is a bit older ; but this :
explicitly mentions collections…
I guess re the aforementioned BSE answer :
Override the armature object
override= bpy.data.objects["rig_Manatea_BODY"].override_create(remap_local_usages=True)
If you want to override the armature in itself add
override.data.override_create(remap_local_usages=True)
https://docs.blender.org/api/current/bpy.types.ID.html#bpy.types.ID.override_create