Skip to content

Request: apply object conversion to all selected objects #10

Description

@ZacharyTalis

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]")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions