New Object Display Pie (Shift+W) #26

Merged
Demeter Dzadik merged 4 commits from object_display_pie into main 2024-09-08 13:07:19 +02:00
Collaborator

This PR adds a pretty basic pie menu exposing Object Viewport Shading settings, on the Shift+W default shortcut.

image

Goals were:

  • Bring back quick access to the Shade Smooth/Flat operators that were removed along with this add-on's old Shading Pie in favor of Blender's built-in one.
  • Make it more clear that these are destructive operators rather than simple property toggles.
  • In my personal workflow I often toggle x-ray, wireframe, and armature display type, so I wanted to have quicker access to those with a pie menu.

This pie with its "Shading Operations" drop-down makes it clear that those are destructive operations, while also providing access to per-object viewport display options. These only affect the active object, unless you hold Alt, like with any property in Blender.
Operators always affect all selected objects.

It also adds a new "Reset Normals" operator for meshes, which can be useful when beginner users import a mesh with broken normals and are confused why it might be broken. This operator will cover all bases to nuke any custom normal data on all selected mesh objects.

The pie menu shows context-sensitive properties based on the active object type. And it cannot be invoked without an active object.

I expect this to be fairly non-controversial, so I aim to land it in the next version in a few days. But feedback would still be welcome!

This PR adds a pretty basic pie menu exposing Object Viewport Shading settings, on the Shift+W default shortcut. ![image](/attachments/facc2b40-9701-42cc-9e31-1dbb4e59b5a1) Goals were: - Bring back quick access to the Shade Smooth/Flat operators that were removed along with this add-on's old Shading Pie in favor of Blender's built-in one. - Make it more clear that these are destructive operators rather than simple property toggles. - In my personal workflow I often toggle x-ray, wireframe, and armature display type, so I wanted to have quicker access to those with a pie menu. This pie with its "Shading Operations" drop-down makes it clear that those are destructive operations, while also providing access to per-object viewport display options. These only affect the active object, unless you hold Alt, like with any property in Blender. Operators always affect all selected objects. It also adds a new "Reset Normals" operator for meshes, which can be useful when beginner users import a mesh with broken normals and are confused why it might be broken. This operator will cover all bases to nuke any custom normal data on all selected mesh objects. The pie menu shows context-sensitive properties based on the active object type. And it cannot be invoked without an active object. I expect this to be fairly non-controversial, so I aim to land it in the next version in a few days. But feedback would still be welcome!
Demeter Dzadik added 1 commit 2024-09-06 01:33:45 +02:00
Demeter Dzadik added 1 commit 2024-09-06 02:14:00 +02:00
Contributor

Thank you for adding this convenient pie menu.
bug? I can't change the color of my selected object with the Color slice (located at the top).

Thank you for adding this convenient pie menu. ❌ bug? I can't change the color of my selected object with the Color slice (located at the top).
Demeter Dzadik force-pushed object_display_pie from 8b8a5203c0 to 8231e17796 2024-09-08 04:47:25 +02:00 Compare
Author
Collaborator

You have to make sure your viewport shading is actually set to show object colors.
And it doesn't work if you keep holding the shortcut of the pie, you have to just tap it.

Lmk if that doesn't help. Should work as far as I can tell.

You have to make sure your viewport shading is actually set to show object colors. And it doesn't work if you keep holding the shortcut of the pie, you have to just tap it. Lmk if that doesn't help. Should work as far as I can tell.
Demeter Dzadik added 1 commit 2024-09-08 05:02:01 +02:00
Demeter Dzadik added 1 commit 2024-09-08 05:06:42 +02:00
Demeter Dzadik merged commit 89b5a6a104 into main 2024-09-08 13:07:19 +02:00
Demeter Dzadik deleted branch object_display_pie 2024-09-08 13:07:20 +02:00
Contributor

Would it be possible to colorize several objects at once (if those are selected) ?
Otherwise the user would have to select each object one by one to give an object the same color.


And would it be possible to add a button to Randomize the color of the selected objects?
If one object is selected, clicking on the button several times would (obviously) affect it several different colors in a row.
And if several objects are selected, each object would get a different random color.

Here a script that perhaps could help:

mockup

Would it be possible to colorize several objects at once (if those are selected) ? Otherwise the user would have to select each object one by one to give an object the same color. --- And would it be possible to add a button to Randomize the color of the selected objects? If one object is selected, clicking on the button several times would (obviously) affect it several different colors in a row. And if several objects are selected, each object would get a different random color. Here a script that perhaps could help: - https://github.com/Creatide/Blender_Random-Diffuse-Colors ![mockup](/attachments/a81b2e09-928f-4457-9e58-565549273ab1)
Author
Collaborator

Damn, I didn't realize color wheels don't support holding Alt to affect all selected objects. That almost feels like a Blender bug... Thanks for pointing that out, I'll see what I can do.

Edit: Seems to be a confirmed Blender bug. blender/blender#118240
I've given it a nudge and will see what happens for now. If it gets fixed for 4.3 then I won't bother adding a workaround in the add-on.

Damn, I didn't realize color wheels don't support holding Alt to affect all selected objects. That almost feels like a Blender bug... Thanks for pointing that out, I'll see what I can do. Edit: Seems to be a confirmed Blender bug. https://projects.blender.org/blender/blender/issues/118240 I've given it a nudge and will see what happens for now. If it gets fixed for 4.3 then I won't bother adding a workaround in the add-on.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: extensions/space_view3d_pie_menus#26
No description provided.