Curves: Add separate start and end amounts to Select End operator #108799

Merged
Falk David merged 4 commits from filedescriptor/blender:curves-select-ends-mode into main 2023-06-09 16:12:34 +02:00
Member

It felt a bit weird to have a boolean to select between front and back, I think using an enum mode makes sense here.
That also means you could select both ends without having to call the operator twice.

image

It felt a bit weird to have a boolean to select between front and back, I think using an enum `mode` makes sense here. That also means you could select both ends without having to call the operator twice. ![image](/attachments/5e3c0ff9-732a-4731-882c-be4e79b2d959)
618 KiB
Falk David requested review from Hans Goudey 2023-06-09 12:00:58 +02:00
Falk David added this to the Nodes & Physics project 2023-06-09 12:01:06 +02:00
Hans Goudey reviewed 2023-06-09 14:11:42 +02:00
Hans Goudey left a comment
Member

Interesting, I agree this an improvement. But what about exposing a UI more like the Endpoint Selection node?
image
That seems pretty simple, and also gives the option of selecting a different amount for the start and end.

Interesting, I agree this an improvement. But what about exposing a UI more like the Endpoint Selection node? ![image](/attachments/251ccc76-fb59-4f48-b187-2065dfa01395) That seems pretty simple, and also gives the option of selecting a different amount for the start and end.
9.5 KiB
Author
Member

Ah! Yes I agree, that makes even more sense. Also means that the operator wouldn't need a RNA_def_enum which feels a bit better.

Ah! Yes I agree, that makes even more sense. Also means that the operator wouldn't need a `RNA_def_enum` which feels a bit better.
Falk David changed title from Curves: Add "mode" for select_ends to Curves: Add "amount_front" and "-back" for select_ends 2023-06-09 14:26:16 +02:00
Falk David force-pushed curves-select-ends-mode from 3e12a8fe78 to 1627de3197 2023-06-09 14:32:41 +02:00 Compare
Author
Member

I changed the operator name from CURVES_OT_select_end to CURVES_OT_select_ends. Not sure if that is ok or not (breaking compatibility?). I can also revert that if needed.

I changed the operator name from `CURVES_OT_select_end` to `CURVES_OT_select_ends`. Not sure if that is ok or not (breaking compatibility?). I can also revert that if needed.
Hans Goudey requested changes 2023-06-09 14:43:33 +02:00
Hans Goudey left a comment
Member

Breaking the operator name shouldn't be a problem compared to changing its properties. Anyway, operators have less strict no-breakage requirements I think.

This looks great. I think the UI could be specialized though, to look more like this:
image

Breaking the operator name shouldn't be a problem compared to changing its properties. Anyway, operators have less strict no-breakage requirements I think. This looks great. I think the UI could be specialized though, to look more like this: ![image](/attachments/26752b59-2e29-4334-a596-37d22c2287bd)
2.8 KiB
Member

Also, might as well change the operator UI name to "Select Ends" now too.

Also, might as well change the operator UI name to "Select Ends" now too.
Hans Goudey changed title from Curves: Add "amount_front" and "-back" for select_ends to Curves: Add separate front and back amounts to Select End operator 2023-06-09 14:44:38 +02:00
Falk David added 1 commit 2023-06-09 15:09:36 +02:00
Falk David added 1 commit 2023-06-09 15:29:25 +02:00
Falk David requested review from Hans Goudey 2023-06-09 15:33:57 +02:00
Hans Goudey reviewed 2023-06-09 15:43:50 +02:00
Hans Goudey left a comment
Member

I'm finding the "Front" and "Back" words a bit confusing. Maybe reusing the same "Start" and "End" from the node would make sense too. Other than that this looks good.

I'm finding the "Front" and "Back" words a bit confusing. Maybe reusing the same "Start" and "End" from the node would make sense too. Other than that this looks good.
Falk David added 1 commit 2023-06-09 15:59:13 +02:00
Hans Goudey approved these changes 2023-06-09 16:00:10 +02:00
Falk David merged commit 26bad3b187 into main 2023-06-09 16:12:34 +02:00
Falk David deleted branch curves-select-ends-mode 2023-06-09 16:12:35 +02:00
Falk David changed title from Curves: Add separate front and back amounts to Select End operator to Curves: Add separate start and end amounts to Select End operator 2023-06-09 16:12:44 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
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: blender/blender#108799
No description provided.