GPv3: Brush radius unit option #120257
No reviewers
Labels
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 project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#120257
Loading…
Reference in New Issue
No description provided.
Delete Branch "filedescriptor/blender:gpv3-scene-brush-size"
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?
This implements and exposes the
View
/Scene
brush radius option.View
: Brush units are in pixels. Zooming in and out in the viewport will make the brush stay the same size relative to the view, but grow/shrink relative to the scene.Scene
: Brush units are in meters. Zooming in and out in the viewport will make the brush grow/shrink relative to the view, but stay the same size relative to the scene.The default radius unit is
Scene
, which is what GPv2 did.The "2D Animation Template" was updated to disable using the radius in the unified paint settings. This means that using the template by default will use the brush radius, which also mimics the behavior of GPv2.
The user can change the radius brush unit from the
Advanced
panel.WIP: GPv3: Brush radius unit optionto GPv3: Brush radius unit option@blender-bot package
Package build started. Download here when ready.
Everything worked very well in my tests, just two point to think about:
When using scene units, having the radius size in meters (for example, 0.01 m) is not so user friendly for 2D artist. Maybe overrides the system units with millimeters or inches depending on the unit system could be a solution?
Having the option to unify the Radius for all brushes was always a pending task. is now the right time to implement it?
@mendio Thanks for testing!
Only checked the versioning part for now.
Besides moving it to regular versioning, think you also need apply the same treatment to GP brushes in
BLO_update_defaults_startup_blend
.And both of these versioning calls should be disabled until to full switch to GPv3 is done, since I do not see how to prevent invalid behaviors otherwise...
@ -2961,6 +2961,20 @@ void legacy_gpencil_object(Main &bmain, Object &object)
legacy_gpencil_object_ex(conversion_data, object);
}
static void legacy_gpencil_brushes(Main &bmain)
This should be part of the regular versioning code, it cannot be called here.
The main reason being, there is no way to prevent re-applying the conversion multiple time on the same data, since this code is executed outside of any fileversion control.
Further more, such basic conversion should be kept out of the
do_versions_after_setup
area - the less processing we have here, the better.After an in-person discussion with @mont29 about the versioning:
BLO_update_defaults_startup_blend
instead (also to be double checked).haha...Great! just testing that and noticed that when turned on the unit system used change and also the default values for Radius and Strength
Scene radius unit should be the default for Grease Pencil brushes with 0.03 m radius, to get a line similar to the stroke primitive when you first draw. (Whether you use the 2D animation template or not)
@mendio The presets now use the correct settings. But I can't change the default for the unified paint settings, so if you don't use the template, then the scene will use unified paint settings and the brush will be in view space.
Maybe what we need to do is also show the unified paint settings toggle in the top bar so that you can easily turn that off without needing to open the side panel.
Versioning side of the PR looks good now, I believe the usability side of it has already been validated by the module, so LGTM.
@blender-bot build
@blender-bot build