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

Collapse effect layer, using DoCommand?

New Here ,
Dec 11, 2008 Dec 11, 2008

Copy link to clipboard

Copied

Hi all,

I try to write a plug-in for After Effects using the 7.0r3 SDK. What I want to do is to un-hide two checkboxes in relation to internal plug-in status.

I do that with
AEGP_SetDynamicStreamFlag(temp_streamrefH, AEGP_DynStreamFlag_HIDDEN, FALSE, FALSE);
whereas temp_streamrefH is the UI-param to be un-hided.

If I do that on an adjustment layer (on which my effect is applied) two things occur.
1) The parameter is shown as expected in the effect control panel. This is exactly what I want!
2) The effect layer inside the Timeline panel is unfolded and shows there the un-hided checkboxes. This is what I don't want.

To get rid of effects from point 2 I tried to collapse the layer using
AEGP_SetLayerFlag(effect_layerH, AEGP_LayerFlag_COLLAPSE, TRUE));
called from within Render() but this has no effect.

Another approach was to get the current collection, select only the effect layer and set the effect layer collapse flag to TRUE. Again with no result.

As I've read in other threads it is possible to operate using a command but I dont't know the value for COLLAPSE. Could one please tell me the right number or give me a hint to solve my problem?

Thanks in advance
TOPICS
SDK

Views

1.5K
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 Employee ,
Dec 11, 2008 Dec 11, 2008

Copy link to clipboard

Copied

Are the checkboxes effect params, or layer streams?

For effect params, see the Supervisor sample.

Votes

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
New Here ,
Dec 12, 2008 Dec 12, 2008

Copy link to clipboard

Copied

LATEST
Thanks brooce.

The checkboxes are effect parameters which reside in the effect control panel (same as in Supervisor). I already checked the Supervisor code and tried both approaches, via PF_ParamDefs ui_flags and also via AEGP_DynamicStreamSuite. The Supervisor behaves same as my plug-in.

First switch to Easy mode and the get back to Hard. You'll see in the Timeline panel that the layer on which the Supervisor effect is applied is now unfolded and the Supervisor is selected.

How one can impede this expansion in the Timeline panel programmatically? Again, I think its possible to send a collapse command using DoCommand() but I'dont know the value. Please, could you tell me the appropriate collapse command number?

Votes

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