Struggling with layer deactivation

Community Beginner ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

Hi, I just performed a render test for mogrt in premiere pro. where I had set the opacity of 5 out of 6 layers to 0. render time was 8.5 minutes.
and when I manually deactivated the layer instead of setting the opacity 0. render time was 4 minutes for the same mogrt.
So now, I want to create a plugin for after effect. I want to create a effect that will have a checkbox and it will disable the layer. and I would export the functionality in mogrt for premiere pro.
I successfully created a simple plugin that has a checkbox. but the problem is I'm unable to find the syntax for the layer.
If anyone knows how can I get the layer on which my effect is attached and what is the syntax to disable the layer through the c++ APi.
TOPICS
Error or problem , Expressions , How to , Performance , Scripting , SDK

Views

88

Likes

Translate

Translate

Report

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

correct answers 1 Correct answer

Adobe Community Professional , Apr 01, 2022 Apr 01, 2022
this is how you turn off the video switch of the effect's seld layer. AEGP_LayerH layerH; suites.AEGP_GetEffectLayer(in_data->effect_ref, &layerH); suites.AEGP_SetLayerFlag(layerH, AEGP_LayerFlag_VIDEO_ACTIVE, FALSE);

Likes

Translate

Translate
Adobe Community Professional ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

AEGP_SetLayerFlag with AEGP_LayerFlag_VIDEO_ACTIVE

Likes

Translate

Translate

Report

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 Beginner ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

I am new to this API and trying to change the default template in the SDK and things are going over my head.
I don't know how can I get the current layer. and how to check if the layer is disabled and how to disable it if it's already enabled.
Screenshot 2022-04-02 024001.jpg

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

this is how you turn off the video switch of the effect's seld layer.
AEGP_LayerH layerH;

suites.AEGP_GetEffectLayer(in_data->effect_ref, &layerH);

suites.AEGP_SetLayerFlag(layerH, AEGP_LayerFlag_VIDEO_ACTIVE, FALSE);

Likes

Translate

Translate

Report

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 Beginner ,
Apr 02, 2022 Apr 02, 2022

Copy link to clipboard

Copied

I am sorry to bother you again. but it seems like this function doesn't exist anymore.

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Apr 02, 2022 Apr 02, 2022

Copy link to clipboard

Copied

LATEST

it does.

AEPG_SuiteHandler suites(in_data->pica_basicP);

suites.AEGP_PFInterfaceSuite1()->AEGP_GetEffectLayer();

Likes

Translate

Translate

Report

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