Picking a layer Topic is solved

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
David_Fine
Posts: 557
Joined: 29 Aug 2014, 16:39

Picking a layer

Post by David_Fine »

When I use the Pick Layer option to find a layer by clicking on the image, instead of giving me the layer of the item I have clicked on, it gives me a choice of every single layer which intersects with the click point. That kind of defeats the purpose because I am trying to find the layer I am clicking on. Is there a way to restrict the Pick Layer tool to only choose the layer I click on specifically?
David Fine
iMac late 2014 3.5 GHz, 32GB RAM
Snowden Fine Animation Inc.
Vancouver, Canada
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Picking a layer

Post by Svengali »

David, that's just how the layer picker works - if the pixel you click is occupied on two or more layers, the picker can't know which of the two you want, so YOU have to choose from those offered (unless I'm not understanding you).

Also. A while back I created a script called LAYERFINDERPLUS which gives the user a way to directly select a layer though it might not be visible in the timeline. you can download it << HERE >> if you want to try it out. It will also show you some settings on the current frame and if you click on any layer in the list, that layer becomes the active layer and forces the timeline to display that layer.

Sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Picking a layer

Post by slowtiger »

It's exactly the same in PS - clicking gives you a list of all layers which have a non-transparent pixel in that coordinate. Software doesn't read your mind.
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
David_Fine
Posts: 557
Joined: 29 Aug 2014, 16:39

Re: Picking a layer

Post by David_Fine »

Thanks for the responses. I don't want the software to read my mind, I want it to do what I am specifically asking. For instance, if I use the colour picker to choose a colour from the screen, I click on that colour and it chooses the colour I touched, it doesn't give me a choice of the colours on unseen layers beneath. So same here. If I click on an opaque object the layer picker gives me all the layers below, but clearly I don't want that. Well, clearly to me. Photoshop does not do this. In PS, when you click on an item in the image, it immediately chooses the one layer for the pixel you touched and only that layer and not what is below it, so I wonder why TVPaint doesn't.
David Fine
iMac late 2014 3.5 GHz, 32GB RAM
Snowden Fine Animation Inc.
Vancouver, Canada
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Picking a layer

Post by Svengali »

David, Excuse my mistake. I really don't know or use Photoshop...

In Photoshop assume the upper layer has a wash over the entire surface.
Through the wash you see an object a layer below, an object you want to select, so you click on it.
Explain please, exactly how could Photoshop know what layer you want to select?

Sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
David_Fine
Posts: 557
Joined: 29 Aug 2014, 16:39

Re: Picking a layer

Post by David_Fine »

Photoshop simply chooses the layer of the pixel you touch. With regard to my question about TVPaint, I am only referring to an opaque solid colour or line anyway, which makes it really simple, but TVPaint will give me a pop up of all the layers which have anything intersecting the pixel I touch. That's not what I want. Say I have 30 layers and I notice a blemish somewhere so I zoom in and pick that blemish with the layer picker, but it shows me four layers it might be on. That means I have to manually choose each one until I find the blemish so I can erase it. It would be so much easier if it worked like Photoshop and just picked the layer that the pixel I touched is on, but I guess it doesn't, which is a drag.

Slightly related to the way layers are treated, if I use the paint bucket to fill above, it does not fill the area on the layer above, but all layers above. I would like to be able to avoid that so that it works with only the layer immediately above the layer I am using the paint bucket on. I seem to feel that these to issues are related.
David Fine
iMac late 2014 3.5 GHz, 32GB RAM
Snowden Fine Animation Inc.
Vancouver, Canada
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Picking a layer

Post by slowtiger »

But PS does work the very same way: if at any given coordinate there's a pixel on more than one layer, it will give you a list of these layers to choose from.
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
David_Fine
Posts: 557
Joined: 29 Aug 2014, 16:39

Re: Picking a layer

Post by David_Fine »

Hmm. Not in any version of Photoshop I have ever used. If I choose the Move tool (V key) and touch a pixel it changes the layer selection to that layer only. No choices. I could have 30 layers all intersecting and it just pops to the layer I touched the pixel on. That is, assuming autoselect is on in the option, which it usually is for me.
David Fine
iMac late 2014 3.5 GHz, 32GB RAM
Snowden Fine Animation Inc.
Vancouver, Canada
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Picking a layer

Post by Svengali »

David, try RMB clicking on overlapping layers in PS and I think you'll see the same layer list as you have in TVPaint.

Sven

EDIT: A caution to anyone else who tries to use this PickImageLayer Button/Script. It works but only in special cases where the pixel objects on all layers are FULL OPACITY.
How it works... It first lets you select/click any specific pixel in the DISPLAY (no matter what your current layer). Then it reads the RGBA values for that pixel. Then it jumps to each layer in search of the same RGBA pixel. If found, it selects that layer and exits. If not found,(or if the pixel is background) it leaves you on the original layer.
The problem is, if the opacity for the searched for pixel isn't 100%, the comparison fails. At that point, you should use the NATIVE "PICK LAYER" OPTION which will present to you a popup menu of all of the overlapping layers that have a pixel at that X,Y location, allowing you to select, and move, to the layer you want.

Sorry David, that's the best I could do with my current understanding of GEORGE commands... But if it works for you, I'm happy.
Attachments
PickImageLayer.tvpx
sorta works like the LMB layer picker in PS
(83.5 KiB) Downloaded 932 times
Last edited by Svengali on 23 Jan 2017, 03:09, edited 3 times in total.
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
David_Fine
Posts: 557
Joined: 29 Aug 2014, 16:39

Re: Picking a layer

Post by David_Fine »

Hey, that shortcut works exactly as I expect it to. Thank you so much! Problem solved thanks to Sven and the good people here on the forum. Thanks all.
David Fine
iMac late 2014 3.5 GHz, 32GB RAM
Snowden Fine Animation Inc.
Vancouver, Canada
User avatar
David_Fine
Posts: 557
Joined: 29 Aug 2014, 16:39

Re: Picking a layer

Post by David_Fine »

Ack! I spoke to soon. the Pick Image Layer button is not working for me. It just doesn't pick the layer I touch a pixel on at all. Not sure why. It seemed to work at first.
David Fine
iMac late 2014 3.5 GHz, 32GB RAM
Snowden Fine Animation Inc.
Vancouver, Canada
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Picking a layer

Post by Peter Wassink »

i cant bring you further with the layerpick tool but here is a method i often use when removing blemishes or need to find specific layers for other reasons.

i switch to "display current layer" (shortcut =)
this way TVP only shows you the active layer so you can run through your layers holding up/down arrow keys (admittedly 30 is quite a little run...)
and you will be able to find the culprit pretty fast.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Post Reply