Skip to main content
Known Participant
Apr 20, 2023 7:03 AM UTC
Question

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

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

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

ShiveringCactus
Community Expert
Community Expert
Apr 20, 2023 7:59 AM UTC

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; 

 

Translate
Community Expert
Apr 20, 2023 8:05 AM UTC

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.

Translate
Community Expert
Apr 20, 2023 7:56 AM UTC

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.

Translate
Known Participant
Apr 20, 2023 11:43 AM UTC

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

Translate
Known Participant
Apr 20, 2023 12:33 PM UTC

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

Translate