Jump to content

Confusing Color Picker behavior


Recommended Posts

Hi all,

Often I have to get the hex code from sampled color, for this we can use the Color Picker or by double clicking on the Color Chooser, the problem with any of this methods is that to show the hex info the color is applied to the layer and I just want to get the hex code without being applied the color to the layer/image.

Is there a way to do it?

Cheers,
Juan

Link to comment
Share on other sites

Thank you for the video, really appreciated, sadly there are couple of drawbacks with it ūüėĒ.

Firts issue is that it seems I cannot control the sample radius and the second issue is that I'm not able to copy the hex value.
 

Cheers,
Juan

Link to comment
Share on other sites

32 minutes ago, jc4d said:

Thanks, it is working for a pixel type layer which samples correctly but if you sample it on a Image type layer, the layer will be recolored.

Not sure if this is a "feature" or a bug.

Using the Color Picker Tool, which is on the Toolbar along the left side, it does not recolor the layer. Do not have the layer selected in the Layer Panel. I just tried this using 1-Image type layer, and 1-Pixel type layer.

Edited by Ron P.
Add Screen Recording

Affinity Photo 1.10.5.1342 ; Affinity Photo Beta 1.10.5.1342; Affinity Designer 1.10.5.1342; Affinity Designer Beta 1.10.5.1342; Win10 Home Version:21H2, Build: 19044.1766: Intel Core i7-4770, 3.90GHz, 32GB Ram, Nvidia GTX 645, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

2 hours ago, jc4d said:

Thanks, it is working for a pixel type layer which samples correctly but if you sample it on a Image type layer, the layer will be recolored.

I updated the video (they come absurdly large for some reason, I have my remote desktop environment somehow confused at the moment) that shows the pixel, image and shape layers so you should be able to use the color picker on any type of layer.

Link to comment
Share on other sites

32 minutes ago, jc4d said:

but if you sample it on a Image type layer, the layer will be recolored.

Not sure if this is a "feature" or a bug.

That depends whether you have the option "Apply to Selection" ticked in the context toolbar or not

So, it is not a bug

R.I.P

Link to comment
Share on other sites

That's correct. Plus using the Color Picker Tool, you have control of how much of an area is sampled.

They could certainly improve this.

Affinity Photo 1.10.5.1342 ; Affinity Photo Beta 1.10.5.1342; Affinity Designer 1.10.5.1342; Affinity Designer Beta 1.10.5.1342; Win10 Home Version:21H2, Build: 19044.1766: Intel Core i7-4770, 3.90GHz, 32GB Ram, Nvidia GTX 645, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD

Link to comment
Share on other sites

6 minutes ago, jc4d said:

I understand, the thing is that the Color tab UI is not updating if the apply to selection is unchecked

It is updating the swatch next to the colour picker in the Colour Panel - that is how it is designed to work

7 minutes ago, jc4d said:

and why this happens only to Image type and not Pixel type,

If you read the Help File, it tells you that "Apply to Selection" is only designed to work with Vector objects

 

If you want to copy the hex values using the Colour Picker Tool just ensure you have no object selected when you use it, so that it does not change that object's colour

R.I.P

Link to comment
Share on other sites

27 minutes ago, jc4d said:

why this happens only to Image type and not Pixel type

Only (Image) kind of raster objects (which, too, in Affinity apps are a bit confusingly called "vector" objects) will have, the fill color assigned to them, any change in their visual appearance. A pixel layer can have a color assignment but it does not appear to have any effect. I am not sure if the assignment could have an effect in some specific context, but if it is e.g. converted to an image resource in Publisher (Layer > Convert to Image Resource), the assignment is not retained.

Link to comment
Share on other sites

5 hours ago, Lagarto said:

Only (Image) kind of raster objects (which, too, in Affinity apps are a bit confusingly called "vector" objects) ...

Some users refer to them as "vector" or "vector-like" objects, but AFAIK the documentation does not. For example, in this help topic, there is this:

Quote

An image layer has a container which retains the placed image's original color space, resolution and physical dimensions (when placed at native resolution).

So technically I suppose we should be calling them container objects.

Affinity Photo 1.10.5, Affinity Designer 1.10.5, Affinity Publisher 1.10.5;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.5.280 & Affinity Designer 1.10.5 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.0.2

Link to comment
Share on other sites

6 hours ago, jc4d said:

I understand, the thing is that the Color tab UI is not updating if the apply to selection is unchecked...

As @carl123 mentioned, the small color swatch next to the dropper icon in the Color panel is updated when you use the Color Picker Tool.

It is a bit of a workaround, but if you want to copy the hex code of that color swatch, you can do so by first making sure either no layer or only a pixel layer is selected (so the color will not be applied to anything in the document), clicking once on that small swatch to set one of the large color swatches to its left to that color, & then double-clicking that large color swatch to open the Color Chooser window, where you can copy the hex value shown there to the clipboard.

This would be a lot easier to do if double-clicking on the small color swatch in the Color panel opened the Color Chooser window with that color preselected. So maybe add a feature request for that?

Affinity Photo 1.10.5, Affinity Designer 1.10.5, Affinity Publisher 1.10.5;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.5.280 & Affinity Designer 1.10.5 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.0.2

Link to comment
Share on other sites

23 minutes ago, R C-R said:

So technically I suppose we should be calling them container objects.

I am not sure what they should be called. In many ways pixel layers (objects) are similar to image layers (objects), the former, too can retain information on "original" DPI and physical dimensions (separately from the canvas), and a pixel layer can certainly be a container, and can also accept a fill color in a non-destructive way (even if not as a regular fill color). Raster brushes are called vector brushes in Designer because they have object-like properties or behvior so perhaps that's why "image" kind of raster containers are called by some users as vector objects.

pixel_vs_image.jpg.200ba87bdaa5e0dcb0d7995c24aee42f.jpg

 

Link to comment
Share on other sites

21 minutes ago, Lagarto said:

and a pixel layer can certainly be a container,

I would not call the pixel layer you showed a "container". It is a parent. A container hides its internals, and is a self-contained single object as far as the document is concerned. For example, if you have an embedded or linked file you cannot see the layers within it. All you see is one layer in the Layers panel. The same applies to an Image layer; only one layer in the Layers panel, and you cannot operate on its contents (pixels) directly. Your example has 3 layers, not one.

-- Walt

   Desktop: new:  Windows 11 Home, version 21H2 (22000.613) 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090  (old: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970 )
   Laptop:  Windows 10 Home, version 21H2 (19044.1706) 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Affinity Photo 1.10.5 (.1342) and 1.10.5.1342 Beta   / Affinity Designer 1.10.5 (.1342) and 1.10.5.1342 Beta  / Affinity Publisher 1.10.5 (.1342) and 1.10.5.1282 Beta
 iPad Pro M1, 12.9", iPadOS 15.4.1, Apple Pencil 2, Magic Keyboard

  Affinity Photo 1.10.5 (.280) and 1.10.2 (.266) Beta / Affinity Designer 1.10.5 (.21) and 1.10.3 (.19) Beta 

Link to comment
Share on other sites

1 hour ago, walt.farrell said:

I would not call the pixel layer you showed a "container". It is a parent.

That is what I would call it. But I would never call an Image layer a vector object.

Affinity Photo 1.10.5, Affinity Designer 1.10.5, Affinity Publisher 1.10.5;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.5.280 & Affinity Designer 1.10.5 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.0.2

Link to comment
Share on other sites

27 minutes ago, walt.farrell said:

would not call the pixel layer you showed a "container".

Personally I think that it is ok to use "natural language" and call something that contains a container. Whether it is "self-contained", or something else (e.g., a kind of an organizing container similarly as a group layer, or a layer layer, the function of which a pixel layer in Photo in many ways has) is once again only vaguely defined in the documentation. Calling it a "parent" is pretty much as informative as calling a clipping object or a mask a parent. Affinity apps are full of such confusing terms, starting from "layer". This is how the documentation "clarifies" the terminological confusion:

drawers.jpg.fd47c60f10ee59cf6d56f0b6e18420e6.jpg

 

 

Link to comment
Share on other sites

13 minutes ago, R C-R said:

But I would never call an Image layer a vector object.

I used the term because I have seen it been used in context of specifying which kind of raster objects can have tints and shades. But I agree that is not proper use of the term "vector". Similarly as it is improper in context of raster brushes.

Link to comment
Share on other sites

16 minutes ago, Lagarto said:

Calling it a "parent" is pretty much as informative as calling a clipping object or a mask a parent.

I think what is meant by a parent-child object relationship is reasonably clear. I see no problems using it to describe the difference between some object & whatever other object(s) might be indented below it in the Layers panel, or hiding behind the disclosure triangles in the panel.

Affinity Photo 1.10.5, Affinity Designer 1.10.5, Affinity Publisher 1.10.5;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.5.280 & Affinity Designer 1.10.5 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.0.2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.