Skip to main content
Known Participant
March 17, 2009
Question

How can I add a button like a "About"??

  • March 17, 2009
  • 3 replies
  • 4618 views

Hi,

I want to add a button that is exactly looks like "About" button. I have searched in the AfterEffects SDK, but not getting anything.

Could you please tell me 

- "About" parameter type is button or anything in AfterEffects?

- how can I add the button which should be looks like "About" button ?
[ even functionality is also same ).

Please help me on this.

Thanks
Manjunath

This topic has been closed for replies.

3 replies

Known Participant
April 1, 2009
Hi Zac,

You are correct and Thank you very much for correcting me. :)
Inspiring
March 31, 2009
Hi Manjunath,

Glad you solved the problem, and thanks for updating this thread with the answer! One thing worth pointing out is that the PF_OutFlag_PIX_INDEPENDENT and PF_OutFlag_USE_OUTPUT_EXTENT flags are unrelated to the options button. And the value for AE_Effect_Global_OutFlags in the PiPL (.r file) will depend on the combination of the flags set in out_data->out_flags, so 0x460 works for the combination of 3 that you listed, but it would be different if you just set PF_OutFlag_I_DO_DIALOG on its own.
Lazlo_Hollyfeld
Inspiring
July 31, 2013

Hey Zac,

How is the value for the AE_Effect_Global_OutFlags in the PiPL.r file calculated.  In other words, how did Manjunath come up with 0x460.  Can you provide some guidance?


Thanks!

Community Expert
July 31, 2013

the outfalg's values are set by an enumeration.

if you hover over a such an outfalg's text in visual studio it would show you it's value.

you can also jump to it's definition and see it in the enum block.

from there on, it's just a matter of adding up the numbers.

you don't have to translte the values to hex. simple decimal will do just fine.

another trick is to create a new enum that will do the math for you like so:

enum {

     OUTFLAG_SUM = I_USE_3D_CAMERA + I_AM_BAD_AT_MATH

};

and the comiler will show you the result while hovering over OUTFLAG_SUM.

at some point, i tried putting sych definitions in a header, and then putting OUTFLAG_SUM in the .r file instead of the actual number.

that worked on visual studio but failed on xcode, so i gave it up, and just did the math. (while vocalizing my discontent)

Known Participant
March 31, 2009
Good News :)
I have done it.

for this:

- out_data flags should be
out_data->out_flags = PF_OutFlag_PIX_INDEPENDENT | PF_OutFlag_USE_OUTPUT_EXTENT | PF_OutFlag_I_DO_DIALOG;

- In .r file, the flags should be
AE_Effect_Global_OutFlags {
0x460
}

By doing above two steps, "Options" button should display in the UI.

for renaming "Options" button to "What ever you want", you need to look into PF_SetOptionsButtonName() SDK function.