-
1. Re: Hidden knob still shows background image
shachar carmi Jan 28, 2014 2:19 PM (in response to maxweel)well, your code is conditional to the getting of an effect ref. (as it
should be!)
there are situations where the effect still has not reference or associated
layer, such as during global setup and a few other occasions.
PF_Cmd_UPDATE_PARAMS_UI is supposed to be called when the effect is already
displayed, but that could be the case.
put an "else" block for the if(effectH), and see if you get hit a
breakpoint there. if so, the indeed AE is calling you at a time it's not
giving a ref in.
-
2. Re: Hidden knob still shows background image
maxweel Jan 28, 2014 3:05 PM (in response to shachar carmi)Hi Shachar, thanks for the answer.
No, I added some breakpoints to check that and I seem to be getting the effectH and streamH properly, and err and err2 remain equal to zero.
But still: you can see that everything gets indeed hidden, except the background image!
Am I doing something very wrong or am I forgetting to ask AE to update the param? I'm having trouble believing nobody ever came across something like that, I guess I must be missing something.
Thanks again,
Kevin
EDIT: I forgot to say that actually when you hit Undo or load an Fx preset it seems that AE displays the plugin the exact way it was saved, and that is before it calls PF_Cmd_UPDATE_PARAMS_UI.
So basically, AE is recreating the instance of the effect as displayed in my second screenshot and the code in my PF_Cmd_UPDATE_PARAMS_UI case has then no effect on the UI.
-
3. Re: Hidden knob still shows background image
maxweel Jan 28, 2014 3:30 PM (in response to maxweel)OK, this is getting weirder: if I use the PF_ParamFlag_COLLAPSE_TWIRLY flag when hiding the angle param, I can delete and undo at will, everything looks fine: no more zombie knobs.
However when saving as animation preset and loading the preset the issue is still there ...
-
4. Re: Hidden knob still shows background image
shachar carmi Jan 28, 2014 3:31 PM (in response to maxweel)is UpdateParamsUI at all called when applying an effect preset?
-
5. Re: Hidden knob still shows background image
maxweel Jan 28, 2014 4:24 PM (in response to shachar carmi)Yes it is, but I think this is a bug with angle controls. I added the PF_ParamFlag_COLLAPSE_TWIRLY flag to the PF_ParamDef before creating the control so that they are closed when appearing:
def.flags = PF_ParamFlag_COLLAPSE_TWIRLY; PF_ADD_ANGLE( "Knob", 0, diskID);
and now everything works fine.
So thanks again for the help but unless I'm missing something there doesn't seem to be anything very logical happening here!
-
6. Re: Hidden knob still shows background image
shachar carmi Jan 28, 2014 4:25 PM (in response to maxweel)congrats! you've discovered a bug in AE! you get have it named after you!
:-D
what version of AE are testing on? (these issues differ from version to
version.
-
7. Re: Hidden knob still shows background image
maxweel Jan 28, 2014 4:35 PM (in response to shachar carmi)Lol, imagine if they started adding all the names of all the people finding bugs to the splashscreen! ... I guess it would crash and someone would have to report it, then his/her name would be added to the screen as well, etc
It's funny (or rather ironic) how I could find a workaround a few hours after posting here even though I've been strugling with this for a couple days now, sorry I wasted your time with the UpdateParamsUI thing.
Anyway, I've seen the "bug" (if it is one) both in 11.0.4 and CC 12.1 (I'll check on 12.2 later on), I'll report it.
Thanks again!
-
8. Re: Hidden knob still shows background image
shachar carmi Jan 28, 2014 5:12 PM (in response to maxweel)i did not help. you came up with the work around.
and thanks for reporting back! that's how a common knowledge base is built.
-
9. Re: Hidden knob still shows background image
maxweel Jan 29, 2014 2:33 PM (in response to shachar carmi)One more question Shachar: is hiding the control during the first PF_Cmd_UpdateParamsUI (like in the code I posted) the best way of creating a hidden parameter (I mean one that needs to be revealed at some point later on)? Or is there a flag that can create the parameter hidden?
I'm just wondering if that isn't the reason why the controls get messed up.
-
10. Re: Hidden knob still shows background image
shachar carmi Jan 29, 2014 2:39 PM (in response to maxweel)using the AEGP suites, you can hide parameters during any call.
however, PF_Cmd_UpdateParamsUI is the best place to make such operations,
as that's the only call you KNOW, for sure, that some change that requires
UI attention is happening.
it will call you when the effect is applied, loaded, copied, ect...
the reason you had problems was that you stumbled upon an AE bug.
you managed you code just fine.
-
11. Re: Hidden knob still shows background image
maxweel Jan 29, 2014 4:30 PM (in response to shachar carmi)Still, I never realised that but it seems a bit weird to create the params visible then hide them straight after creation, I was just wondering if they couldn't be created hidden straight away but without affecting their UI so that they can be made visible later on.
-
12. Re: Hidden knob still shows background image
shachar carmi Jan 29, 2014 4:33 PM (in response to maxweel)nope. the visibility flag is a stream flag, and these can only be set when
there's a stream. during param_setup, there's still no stream.


