Grease Pencil : color attribute not updating when choose a color in the palette (caused by Unified Paint Settings being ignored by grease pencil) #116578

Open
opened 2023-12-27 12:08:20 +01:00 by foxy · 3 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61

Blender Version
Broken: version: 3.6.7, branch: blender-v3.6-release, commit date: 2023-12-11 16:28, hash: cbd81f283d58
Worked: never

Short description of error

Grease pencil does not really handle unified paint settings well. As a consequence it can happen that colors are not updating in the UI when picked from a palette

Exact steps for others to reproduce the error
from the default startup scene:

  • C.scene.tool_settings.unified_paint_settings.use_unified_color = True
  • add a greasepencil stroke
  • enter draw mode
  • switch to Color Attribute paint mode
    image
  • try changing a color by clicking on a color in the palette, nothing happens

When unified paint settings are used, the values are not ending up on the brush, but on the unified paint settings, grease pencil is ignoring this throughout it seems

Original report

Short description of error
[Please fill out a short description of the error here]

I created a grease pencil scene.
On this scene, I draw in color attribut.
If I choose a color in the palette, the active color attribut is not updating.

I upload a gif with the error.
This occirs also in the last 4.0.2.
This doesn't happend from a blank scene of course.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

As I couldn't really reproduce the error from scratch, it seems my scene is corrupted somehow, I share my scene. I open this scene in many other blender release, including the last 4.0.2 and the result is the same.

I dont really understand what I did wrong. I used some addons, but nothing really special.

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61 **Blender Version** Broken: version: 3.6.7, branch: blender-v3.6-release, commit date: 2023-12-11 16:28, hash: `cbd81f283d58` Worked: never **Short description of error** Grease pencil does not really handle unified paint settings well. As a consequence it can happen that colors are not updating in the UI when picked from a palette **Exact steps for others to reproduce the error** from the default startup scene: - C.scene.tool_settings.unified_paint_settings.use_unified_color = True - add a greasepencil stroke - enter draw mode - switch to `Color Attribute` paint mode ![image](/attachments/0c813163-8950-4713-b000-929cd3367bac) - try changing a color by clicking on a color in the palette, nothing happens When unified paint settings are used, the values are not ending up on the brush, but on the unified paint settings, grease pencil is ignoring this throughout it seems **Original report** **Short description of error** [Please fill out a short description of the error here] I created a grease pencil scene. On this scene, I draw in color attribut. If I choose a color in the palette, the active color attribut is not updating. I upload a gif with the error. This occirs also in the last 4.0.2. This doesn't happend from a blank scene of course. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] As I couldn't really reproduce the error from scratch, it seems my scene is corrupted somehow, I share my scene. I open this scene in many other blender release, including the last 4.0.2 and the result is the same. I dont really understand what I did wrong. I used some addons, but nothing really special.
foxy added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-12-27 12:08:20 +01:00
Member

Can confirm in this .blend, will check

Can confirm in this .blend, will check
Philipp Oeser added
Status
Confirmed
Module
Grease Pencil
and removed
Status
Needs Triage
labels 2023-12-27 13:14:43 +01:00
Member

OK, took me a while to figure this one out:

The scene SH_002 scene.tool_settings.unified_paint_settings.use_unified_color is turned ON.

If you set this to False, the color is then propagated to the Brush (and it seems GreasePencil assumes just working with brushes and is not considering UnifiedPaintSettings properly).

OK, took me a while to figure this one out: The scene `SH_002` `scene.tool_settings.unified_paint_settings.use_unified_color` is turned ON. If you set this to False, the color is then propagated to the Brush (and it seems GreasePencil assumes just working with brushes and is not considering `UnifiedPaintSettings` properly).
Philipp Oeser changed title from Grease Pencil : color attribut not updating when choose a color in the palette to Grease Pencil : color attribute not updating when choose a color in the palette (caused by Unified Paint Settings being ignored by grease pencil) 2023-12-28 11:13:10 +01:00
Philipp Oeser added the
Interest
Sculpt, Paint & Texture
label 2023-12-28 11:48:03 +01:00
Author

Thx! then I just used
import bpy
bpy.context.scene.tool_settings.unified_paint_settings.use_unified_color = 0

for now and I can use the palette. save my work meanwhile you solve the bug.

Thx a lot for your rapidity :)

Thx! then I just used import bpy bpy.context.scene.tool_settings.unified_paint_settings.use_unified_color = 0 for now and I can use the palette. save my work meanwhile you solve the bug. Thx a lot for your rapidity :)
Sign in to join this conversation.
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
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#116578
No description provided.