Skip to main content
Known Participant
April 20, 2023
Question

how to do solid layer transparent programmatically in after effect sdk in c++

  • April 20, 2023
  • 2 replies
  • 1372 views

how to do solid layer transparent programmatically in after effect sdk in c++ ?

This topic has been closed for replies.

2 replies

ShiveringCactus
Community Expert
Community Expert
April 20, 2023

Not used this before, but a few weeks ago, I stumbled across this guide:

https://buildmedia.readthedocs.org/media/pdf/after-effects-scripting-guide/latest/after-effects-scripting-guide.pdf

On page 163, it suggests: var myProperty = myLayer.opacity; 

 

Community Expert
April 20, 2023

that's the javascript API, not the C SDK.

if using a script is good enough for your needs, then it's a much easier route to create and maintain than c++ plugins.

Community Expert
April 20, 2023

after obtaining the AEGP_LayerH of the trager layer, either:
1. use AEGP_SetLayerFlag with AEGP_LayerFlag_VIDEO_ACTIVE.

2. use AEGP_GetNewLayerStream with AEGP_LayerStream_OPACITY, and then use AEGP_SetStreamValue.

Known Participant
April 20, 2023

sorry i ask worng question because i need how to do solid layer background transparent programmatically in after effect sdk in c++

Known Participant
April 20, 2023

Please reply this questions how to do solid layer background transparent programmatically in after effect sdk in c++