GPencil: New Eyedropper tools (Main Task) #69704

Closed
opened 2019-09-10 10:25:27 +02:00 by Antonio Vazquez · 12 comments

New tool to select a color and create a material and also to set as active a material using the sample color.

We have these main targets:

  • Create new materials sampling any color in viewport.
  • Select Materials using sample color (material).

Also, we need a way to disable any effect or modifier that changes the "real" color or use a solution that uses the internal real color. According to Brecht, thi could be done using the selection code and an unique material ID.

New tool to select a color and create a material and also to set as active a material using the sample color. We have these main targets: - Create new materials sampling any color in viewport. - Select Materials using sample color (material). Also, we need a way to disable any effect or modifier that changes the "real" color or use a solution that uses the internal real color. According to Brecht, thi could be done using the selection code and an unique material ID.
Antonio Vazquez self-assigned this 2019-09-10 10:25:27 +02:00
Author
Member

Added subscribers: @antoniov, @mendio, @pepe-school-land

Added subscribers: @antoniov, @mendio, @pepe-school-land
Antonio Vazquez changed title from GPencil: New Eyedropper toll to GPencil: New Eyedropper tool 2019-09-10 10:25:35 +02:00
Author
Member

Related patch D5688

Related patch [D5688](https://archive.blender.org/developer/D5688)
Author
Member

Added subscriber: @brecht

Added subscriber: @brecht
Author
Member

@brecht as I think this need more work, could you tag the task for 2.82? I don't know what are the tags for that.

@brecht as I think this need more work, could you tag the task for 2.82? I don't know what are the tags for that.
Author
Member

Not sure, but maybe is better to split this in two tools:

  1. Eyedropper to create materials using any color in the viewport.
  2. New select tool to Select material and set as active.

About point 2), this is useful for GPencil, but could it be useful for other areas of Blender? If we think is useful as a general tool, then this would require a separated task/design to define things like, for example, what happened if you select a material that is not in your object.

Not sure, but maybe is better to split this in two tools: 1) Eyedropper to create materials using any color in the viewport. 2) New select tool to Select material and set as active. About point 2), this is useful for GPencil, but could it be useful for other areas of Blender? If we think is useful as a general tool, then this would require a separated task/design to define things like, for example, what happened if you select a material that is not in your object.
Author
Member

Added subscriber: @WilliamReynish

Added subscriber: @WilliamReynish
Author
Member

@WilliamReynish Maybe you have some opinions about these tools.

@WilliamReynish Maybe you have some opinions about these tools.

At least in terms of implementation it's quite different to select an existing material, or picking whatever color is under the cursor after shader effects, and then creating a new material from that. I don't have a strong opinion on what the best UI for that is though, multiple tools or one tool with some modifier keys.

At least in terms of implementation it's quite different to select an existing material, or picking whatever color is under the cursor after shader effects, and then creating a new material from that. I don't have a strong opinion on what the best UI for that is though, multiple tools or one tool with some modifier keys.
Author
Member

Yes, this is why I think two tools could be better. My concern is trying to do all in the same tool and after some time we have a spaghetti code trying to solve problems that using two separated operators would not exist. Also, this design makes easy to grow in the future with new features without conflicts.

Yes, this is why I think two tools could be better. My concern is trying to do all in the same tool and after some time we have a spaghetti code trying to solve problems that using two separated operators would not exist. Also, this design makes easy to grow in the future with new features without conflicts.

Sure, we can split the eyedropper tool and use a subtool. One to create a new material (based on pixel color) and the other to select an existing stroke material.

eyedropper.PNG

Sure, we can split the eyedropper tool and use a subtool. One to create a new material (based on pixel color) and the other to select an existing stroke material. ![eyedropper.PNG](https://archive.blender.org/developer/F7730989/eyedropper.PNG)
Antonio Vazquez changed title from GPencil: New Eyedropper tool to GPencil: New Eyedropper tool (Main Task) 2019-09-10 16:58:52 +02:00
Antonio Vazquez changed title from GPencil: New Eyedropper tool (Main Task) to GPencil: New Eyedropper tools (Main Task) 2019-09-10 16:59:45 +02:00
Author
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Author
Member

We can close this now because other tools replace the functionality. We can create a new task in the future if we need again.

We can close this now because other tools replace the functionality. We can create a new task in the future if we need again.
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
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#69704
No description provided.