Skip to main content
YuK1_Works
Inspiring
May 16, 2024
Question

About blending mode.

  • May 16, 2024
  • 1 reply
  • 548 views

Is there any way to use the blending mode implemented in AfterEffects with the plug-in?
I would like to know if there is an API such as AEGP, etc., as it would be troublesome to implement it myself.
If there is no API, I would appreciate it if you could provide me with a page where the blending mode calculation formulas are compiled.

This topic has been closed for replies.

1 reply

Community Expert
May 16, 2024

yes, there is such api.

a few of the CompositeSuite callbacks performs compositing with a specified transfer mode. the simplest of which is AEGP_TransferRect, and it takes a PF_CompositeMode arguemnt. 

 

as for the math of the transfer modes,  there's no code in the sdk being compiled that can show you how they're calculated, but here's a very good explanations on most of them:
https://en.wikipedia.org/wiki/Blend_modes

meybe if you google hard enough you'll also find code samples or each, but the wiki page explains the math pretty well. 🙂

if i recall correctly, there's also such a page by adobe explaining asll the rest of the transfer modes.

YuK1_Works
Inspiring
May 17, 2024

Thank you.
I'm not very smart, so an explanation is not enough.
I need specific formulas, but wikipedia doesn't seem to have formulas for "Vivid Light", "Linear Light", etc.

Community Expert
May 17, 2024

here are vivd light and linear light formulated:
https://learn.microsoft.com/en-us/windows/win32/direct2d/blend