looking for fill/line color relationship plug-in(?)

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
thomasteraoka
Posts: 14
Joined: 24 Dec 2012, 12:31
Contact:

looking for fill/line color relationship plug-in(?)

Post by thomasteraoka »

Hi there,
I'm on a Mac OS X Lion v10.7.5. Using TVP10 pro.
I am searching for a tool (or plug-in? or software?) that allows me to fill a closed line drawing, and depending on the fill, the black line will take on a bit of the same hue. Has anybody seen this? Sounds enticing right? I browsed through the software sharing forum and the plug-in forum, but I haven't found what I'm looking for.
One of the guys running a TVP workshop mentioned this exists and I could find it on the forums (albeit *possibly* on the other language forums)
It was used in making the short "Fur", one of the video examples viewable on the TVP website.
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: looking for fill/line color relationship plug-in(?)

Post by Fabrice »

Hi Thomas,

I"m the one who said this.

Right now it's a script, you can find the .tvpx file :
Bordure_Gobelins.tvpx
(219 KiB) Downloaded 885 times
It works with two layers only : one with the lines, one with the colors.
Fabrice Debarge
oferk
Posts: 94
Joined: 23 Jul 2011, 21:27

Re: looking for fill/line color relationship plug-in(?)

Post by oferk »

Funny, I just thought about the same thing, and meant to implement it in my LazyBrush plugin, so we can color the lines with a darker version of the fill color.
Ill try this script right now,
Thanks!
oferk
Posts: 94
Joined: 23 Jul 2011, 21:27

Re: looking for fill/line color relationship plug-in(?)

Post by oferk »

Its cool, Im impressed. Very simple and elegant, and I also learnt of some new script commands.
I just need to modify it to darken the lines a bit.

Oh, maybe you can explain me:
What does this line do:
tv_plugin "colorop" "cmd" "r" "g" "b" "(a-10)*10000"?

Where is the colorop plugin documented?

EDIT: Another question, can I darken the image, and maybe change the saturation, with script commands?

Thanks
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: looking for fill/line color relationship plug-in(?)

Post by Fabrice »

Its cool, Im impressed. Very simple and elegant, and I also learnt of some new script commands.
made by Hervé Adam, our master :wink: :)
Fabrice Debarge
User avatar
ematecki
Site Admin
Posts: 2259
Joined: 15 Feb 2006, 14:32

Re: looking for fill/line color relationship plug-in(?)

Post by ematecki »

oferk wrote: What does this line do:
tv_plugin "colorop" "cmd" "r" "g" "b" "(a-10)*10000"?
colorop applies a formula to the color components of every pixel in the current image of the current layer.

tv_plugin "colorop" "cmd" : always so ("colorop": name of the plugin, "cmd" : plugin specific thing to do, colorop only understand "cmd")

"r" : formula used to compute the new red value for the pixel.
"g", "b" : same for green and blue.
"(a-10)*10000" : formula used to compute the new alpha value for the pixel.

Pixel values are UNmultiplied, both "in" and "out".
Quicktime is DEAD. Get over it and move on !
oferk
Posts: 94
Joined: 23 Jul 2011, 21:27

Re: looking for fill/line color relationship plug-in(?)

Post by oferk »

Ok, thanks. So I can use it for darkening the image a bit.
Excellent.
Post Reply