Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

About blending mode.

Participant ,
May 16, 2024 May 16, 2024

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.

TOPICS
How to , SDK
500
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2024 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 16, 2024 May 16, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 17, 2024 May 17, 2024
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines