GPv3: Select Alternate #109204
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#109204
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Difficulty: ⚫🔴🔴
The
GPENCIL_OT_select_alternate
operator needs to be adapted for the new grease pencil data type.Checklist:
blender/source/blender/editors/curves/intern/curves_selection.cc
write a functionvoid select_alternate(bke::CurvesGeometry &curves, const bool select_ends)
. Follow the structure inselect_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 supportfloat
selections.GREASE_PENCIL_OT_select_alternate
inblender/source/blender/editors/grease_pencil/intern/grease_pencil_ops.cc
. Declare aRNA_def_boolean
namedselect_ends
. Default totrue
.exec
function of the operator, iterate over theeditable_drawings
and call theed::curves::select_alternate
function on the drawing.VIEW3D_MT_select_edit_gpencil
inblender/scripts/startup/bl_ui/space_view3d.py
.@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
@Gangneron sorry, this task is already taken.
ok but have you seen my messages https://blender.chat/direct/sEq8E2ro5ikrGZ3atuFHRJBeFdM9YwrmtB
@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
overgrease_pencil_ops.cc
, so I declared it there :)@Lorenzo-Carpaneto I think this feature should be kept. Only drawings with some selection should be changed.