Setting the blendmode of a layer?

A forum dedicated to George scripting questions
Post Reply
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Setting the blendmode of a layer?

Post by KenC »

Is there a command to set the blendmode of the current layer?
There's no place like ~/
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Setting the blendmode of a layer?

Post by Hervé »

KenC wrote:Is there a command to set the blendmode of the current layer?
No, It's on the TODO list
Hervé ADAM, TVPaint Team
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Re: Setting the blendmode of a layer?

Post by KenC »

Great, will be a very usefull feature to have and speed up many multi layer actions.
There's no place like ~/
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Setting the blendmode of a layer?

Post by Hervé »

the new cmd in the 9.5.5:
* tv_layerblendingmode layerid [ Color | Behind | Erase | Shade | Light | Colorize | Hue | Add | Sub | Multiply | Screen | Replace | Copy | ReplaceSet | Difference | Divide | Overlay | Light2 | Shade2 | HardLight | SoftLight | GrainExtract | GrainMerge | Sub2 | Darken | Lighten | Saturation ]
Hervé ADAM, TVPaint Team
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Re: Setting the blendmode of a layer?

Post by KenC »

Sweet thanks :D
There's no place like ~/
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Re: Setting the blendmode of a layer?

Post by malcooning »

Ken,
did you end up completing the 'unsharp' script, now that you have the blend mode change command?
If so, mind sharing it?
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Re: Setting the blendmode of a layer?

Post by KenC »

Not yet, I'll see if I can whip something up now that we can set the blendmode.

btw the names of the blendmodes are slightly different for some of the mode compared to the list Hervé posted.

Hue=Tint
Copy=Substitute
ReplaceSet=Difference
Light2=Dodge (Light2)
Shade2=Burn (Shade2)
HardLight=Hard Light
SoftLight=Soft Light
GrainExtract=Grain Extract
GrainMerge=Grain Merge
Sub2=Subtract
Darken=Darken Only
Lighten=Lighten Only
Saturation=Saturate2

I think these are correct, someone correct me if I'm wrong, I just went by the original list and compared to the names in the blendmode popup in TVPaint.
There's no place like ~/
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Re: Setting the blendmode of a layer?

Post by KenC »

Uploaded a single layer version here.

http://www.tvpaint.com/forum/viewtopic.php?f=11&t=3614" onclick="window.open(this.href);return false;

I'm no good at scripting animated layers yet, so perhaps someone could expand it to work on animated layers.
There's no place like ~/
Post Reply