The object conversion function only applies to the active object, rather than all objects selected. This is the function used by buttons such as Make invisible (NODISP).
A for-each-selected-object loop (such as the one implemented by drop_selected_objects) should work? Though I don't know enough about the codebase to know if this would have unintended consequences.
In the meantime, here's a Blender console script for achieving this behavior:
def multi_convert(prefix):
active = bpy.context.view_layer.objects.active
for obj in bpy.context.selected_objects:
bpy.context.view_layer.objects.active = obj
bpy.ops.object.convert_selected(prefix=prefix)
bpy.context.view_layer.objects.active = active
multi_convert("[NODISP]")
The object conversion function only applies to the active object, rather than all objects selected. This is the function used by buttons such as
Make invisible (NODISP).A for-each-selected-object loop (such as the one implemented by
drop_selected_objects) should work? Though I don't know enough about the codebase to know if this would have unintended consequences.In the meantime, here's a Blender console script for achieving this behavior: