GPv3: Select Alternate #109204

Closed
opened 2023-06-21 13:59:34 +02:00 by Falk David · 6 comments
Member

Difficulty: 🔴🔴

The GPENCIL_OT_select_alternate operator needs to be adapted for the new grease pencil data type.

Checklist:

  • In blender/source/blender/editors/curves/intern/curves_selection.cc write a function void select_alternate(bke::CurvesGeometry &curves, const bool select_ends). Follow the structure in select_adjacent as reference.
    The function should select every other point except of the start and end point which should be selected based on the select_ends parameter. There is no need to support float selections.
  • Write an operator GREASE_PENCIL_OT_select_alternate in blender/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc. Declare a RNA_def_boolean named select_ends. Default to true.
  • In the exec function of the operator, iterate over the editable_drawings and call the ed::curves::select_alternate function on the drawing.
  • Add the operator to the menu VIEW3D_MT_select_edit_gpencil in blender/scripts/startup/bl_ui/space_view3d.py.
Difficulty: ⚫🔴🔴 The `GPENCIL_OT_select_alternate` operator needs to be adapted for the new grease pencil data type. Checklist: - [ ] In `blender/source/blender/editors/curves/intern/curves_selection.cc` write a function `void select_alternate(bke::CurvesGeometry &curves, const bool select_ends)`. Follow the structure in `select_adjacent` as reference. The function should select every other point except of the start and end point which should be selected based on the `select_ends` parameter. There is no need to support `float` selections. - [ ] Write an operator `GREASE_PENCIL_OT_select_alternate` in `blender/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc`. Declare a `RNA_def_boolean` named `select_ends`. Default to `true`. - [ ] In the `exec` function of the operator, iterate over the `editable_drawings` and call the `ed::curves::select_alternate` function on the drawing. - [ ] Add the operator to the menu `VIEW3D_MT_select_edit_gpencil` in `blender/scripts/startup/bl_ui/space_view3d.py`.
Falk David added the
Type
To Do
label 2023-06-21 13:59:34 +02:00
Falk David added this to the Grease Pencil project 2023-06-21 13:59:35 +02:00

@filedescriptor hello which operator should we Add a VIEW3D_MT_select_edit_gpencil

@filedescriptor hello which operator should we Add a VIEW3D_MT_select_edit_gpencil

For information for the moment I only want to take care of the UI on this task

For information for the moment I only want to take care of the UI on this task
Author
Member

@Gangneron sorry, this task is already taken.

@Gangneron sorry, this task is already taken.
ok but have you seen my messages https://blender.chat/direct/sEq8E2ro5ikrGZ3atuFHRJBeFdM9YwrmtB
Contributor

@filedescriptor In previous versions of blender select_alternate, select the points only for drawings that have some points selected. Do we want to keep this feature or we just do select alternate for every editable_drawing?

Moreover I think that the operator should be declared in grease_pencil_select.cc over grease_pencil_ops.cc, so I declared it there :)

@filedescriptor In previous versions of blender select_alternate, select the points only for drawings that have some points selected. Do we want to keep this feature or we just do select alternate for every `editable_drawing`? Moreover I think that the operator should be declared in `grease_pencil_select.cc` over `grease_pencil_ops.cc`, so I declared it there :)
Author
Member

@Lorenzo-Carpaneto I think this feature should be kept. Only drawings with some selection should be changed.

@Lorenzo-Carpaneto I think this feature should be kept. Only drawings with some selection should be changed.
Falk David referenced this issue from a commit 2023-06-23 11:34:07 +02:00
Blender Bot added the
Status
Resolved
label 2023-06-23 11:34:08 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 project
No Assignees
3 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#109204
No description provided.