Skip to main content
Known Participant
January 24, 2012
Answered

How can I hide an effect parameter?

  • January 24, 2012
  • 2 replies
  • 2183 views

I have an effect with a couple deprecated parameters, and other effects with hidden parameters I set programmatically. I don't want the customer to be able to see them. Setting PF_PUI_NO_ECW_UI in the parameter's ui_flags removes it from the effect window, but not from the timeline window. Setting AEGP_DynStreamFlag_HIDDEN seems to do the trick, but I'm unclear as to when to set it. Currently I'm setting it during param update, but that doesn't appear to cover (for example) the case of opening an existing file.

Is there a well-known way of handling this? Thanks.

Correct answer shachar carmi

set it during PF_Cmd_UPDATE_PARAMS_UI.

it should get called when a project loads and the effect is shown for the first time.

there are more brutal ways, but this really should work.

2 replies

Known Participant
March 6, 2012

I'm having more trouble with this. I'm setting the hidden flag during UPDATE_PARAMS_UI. For most properties this seems fine, but under certain circumstances for arbitrary parameters, the owner-drawn portion of the effect is still there. While handling the draw event I can check whether the stream is hidden (and it is) and not draw anything, but the space is still there for it.

Near as I can tell it, it works correctly when we load the project from disk, but if we apply the effect anew, even though the hide code is being run, it the owner-draw portion effect is there. Any ideas?

Community Expert
March 6, 2012

i know this problem, but sadly i have no solution for it.

it's a bug in AE, who's behavior changes between AE versions.

if you duplicate your effect, or a layer with your effect on it, then the

new instance will have that problem.

if you duplicate that new instance again, then the new new instance will be

ok.

sorry. nothing else i can help with on this one. (besides referring you to

email zac lam)

Known Participant
March 6, 2012

thanks for the info.

shachar carmiCommunity ExpertCorrect answer
Community Expert
January 25, 2012

set it during PF_Cmd_UPDATE_PARAMS_UI.

it should get called when a project loads and the effect is shown for the first time.

there are more brutal ways, but this really should work.

Known Participant
January 25, 2012

that worked like a charm! thanks.