jc4d Posted November 1, 2021 Posted November 1, 2021 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 Quote
GarryP Posted November 1, 2021 Posted November 1, 2021 In Photo (only) you can use the Info Panel, change the Colour Model of a Sampler to RGB Hex and then you can us the Sample from Location tool. See attached video. 2021-11-01 08-46-42.mp4 jc4d 1 Quote
jc4d Posted November 1, 2021 Author Posted November 1, 2021 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 Quote
GarryP Posted November 1, 2021 Posted November 1, 2021 You’re welcome. There’s at least one existing feature request to add a user-controlled sample radius: https://forum.affinity.serif.com/index.php?/topic/139588-color-sampling/ There may be one for being able to copy the value also; you can look for one if you wish to add to it. jc4d 1 Quote
jc4d Posted November 1, 2021 Author Posted November 1, 2021 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. Quote
Ron P. Posted November 1, 2021 Posted November 1, 2021 (edited) 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. 2021-11-01 04-50-42.mp4 Edited November 1, 2021 by Ron P. Add Screen Recording Quote Affinity Photo 2.6..; Affinity Designer 2.6..; Affinity Publisher 2.6..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win11 Home Version:24H2, Build: 26100.1742: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD; Wacom Intuos 3 PTZ-431W
carl123 Posted November 1, 2021 Posted November 1, 2021 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 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
jc4d Posted November 1, 2021 Author Posted November 1, 2021 Thank you both for your reply.@Lagarto thanks to your video I found the issue, if you have the Image type layer selected in the layers panel and start sampling the color, this layer is recolored which it doesn't happens if you have a pixel layer type selected. Â Color picker.mp4 Ron P. 1 Quote
jc4d Posted November 1, 2021 Author Posted November 1, 2021 Just now, carl123 said: That depends whether you have the option "Apply to Selection" ticked in the context toolbar or not So, it is not a bug But if you uncheck the Apply to Selection then the Color panel is not updated and you cannot take the hex number. Ron P. 1 Quote
Ron P. Posted November 1, 2021 Posted November 1, 2021 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. jc4d 1 Quote Affinity Photo 2.6..; Affinity Designer 2.6..; Affinity Publisher 2.6..; Affinity2 Beta versions. Affinity Photo,Designer 1.10.6.1605 Win11 Home Version:24H2, Build: 26100.1742: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3301 Mhz, 6 Core(s), 12 Logical Processor(s);32GB Ram, Nvidia GTX 3070, 3-Internal HDD (1 Crucial MX5000 1TB, 1-Crucial MX5000 500GB, 1-WD 1 TB), 4 External HDD; Wacom Intuos 3 PTZ-431W
jc4d Posted November 1, 2021 Author Posted November 1, 2021 If a moderator/dev can take a look at this topic and comment if this is the expected behavior or a bug then this topic can be moved to bug reports of feature request. Quote
jc4d Posted November 1, 2021 Author Posted November 1, 2021 I understand, the thing is that the Color tab UI is not updating if the apply to selection is unchecked, and why this happens only to Image type and not Pixel type, hence the confussion about the usage of this tool. Quote
carl123 Posted November 1, 2021 Posted November 1, 2021 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 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
R C-R Posted November 1, 2021 Posted November 1, 2021 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. Quote All 3Â 1.10.8, &Â all 3Â V2.6Â Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3Â V2Â apps for iPad;Â 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
R C-R Posted November 1, 2021 Posted November 1, 2021 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? Quote All 3Â 1.10.8, &Â all 3Â V2.6Â Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3Â V2Â apps for iPad;Â 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
walt.farrell Posted November 1, 2021 Posted November 1, 2021 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. R C-R 1 Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC:    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090   Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.    Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.4
R C-R Posted November 1, 2021 Posted November 1, 2021 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. Quote All 3Â 1.10.8, &Â all 3Â V2.6Â Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3Â V2Â apps for iPad;Â 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
R C-R Posted November 1, 2021 Posted November 1, 2021 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. Quote All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Recommended Posts
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.