Auto Pick color - choose the source

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Post Reply
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Auto Pick color - choose the source

Post by Peter Wassink »

The auto pick color is a great way to 'steal' colors from an underlying image.
but you have to pick from the layer itself which makes it destructive.
it would be nice if it could pick from other sources as well.
so in the same way that you can choose where TVPaint looks for the boundaries for a paintbucket fill.
you could then choose where it AutoPicks its color!

AutoPick Source:
-Layer
-display
-Under
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
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Auto Pick color - choose the source

Post by Peter Wassink »

i feel silly,
i'm now looking for the auto pick color option, but forgot where to find it!?

In the paintbucket tool panel it is there...
But i could swear it was also an option in at least one of the drawing tools.
Surely it wasn't dropped, right?
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
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Auto Pick color - choose the source

Post by Svengali »

In a button?
ColorPickArrow.png
ColorPickArrow.png (27.56 KiB) Viewed 4107 times
or GEORGE command?

Code: Select all

tv_getdisplay iX iY

Get the color of pixel in the display

[PARAMETERS]
iX iY    double double    The coordinate

[RETURN]
oR oG oB oA    int int int int    The pixel color

[ERROR]
oR oG oB oA    int int int int    Background color of the view panel if x or y are outside image (but not necessary an error as an image can contain the same color)

------------------------------------------------------------------------------------------------------

tv_getpixellayer ["brush"|"spare"|"undo"] iX iY

Get color of the source

[PARAMETERS]
"brush"|"spare"|"undo"    enum             The source (if no source, the current image of the current layer is used)
iX iY                     double double    The coordinate

[RETURN]
oR oG oB oA    int int int int    Color in the source at the given position

[ERROR]
"none"    string    Source not valid

------------------------------------------------------------------------------------------------------

tv_getpixel iX iY

Get the color of pixel in the current layer image

[PARAMETERS]
iX iY    double double    The coordinate

[RETURN]
oR oG oB oA    int int int int    The pixel color

[ERROR]
0 0 0 0    int int int int    Transparent pixel if x or y are outside image (but not necessary an error as an image can contain transparent pixel)
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
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Auto Pick color - choose the source

Post by Peter Wassink »

No thats not what i mean. What autopick does (or did) is picking colors from another layer as you draw.

So you can put an image on another layer and when you paint on the layer above, every time you put down the pen it samples the color from that position on the source layer.
much like the AutoPick option in the PaintBucket tool.

it could be that this was a custombutton from a third party (maybe from Dhomas, Young Monkey?)
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
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Auto Pick color - choose the source

Post by Svengali »

Ah, sorry Peter, I don't really remember that being an option I ever knew or used...

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
Post Reply