Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
here are vivd light and linear light formulated:
https://learn.microsoft.com/en-us/windows/win32/direct2d/blend