Can someone help me with C++ headers for after effects Plugins?

Can someone help me understand this piece of the plugin header

* BTW it is used in the SDK of AE 2015 *.

He began to make sense and then I just lost myself

==============================================

Enum {}

PORTABLE_INPUT = 0, / / default input layer

PORTABLE_SLIDER,

PORTABLE_NUM_PARAMS

};

Enum {}

PORTABLE_DISK_ID = 1

};

typedef struct {}

A_FpShort slider_value;

} PortableRenderInfo;

#define PORTABLE_MIN 0.0

#define PORTABLE_MAX 200.0

#define PORTABLE_BIG_MAX 200.0

#define PORTABLE_DFLT 10.0

#define SLIDER_PRECISION 1

#define DISPLAY_FLAGS PF_ValueDisplayFlag_PERCENT

extern "C" {}

This code snippet is just defining some constants that get used later, whether it's a macro (#define) or within an enum. It allows you to easily change the value (of, say, PORTABLE_MAX) in one place, rather that at each place, it is used. It is always advisable to define some constants naked symbolism rather than as numbers. Assuming that the name of the symbol is right, that this help really make the code more readable.

Typedef struct defines a structure that can be recorded and transmitted between the functions.

It's pretty basic C, not even using all the C++ features. Search on Google for '#define c' or 'c enum' or anything that will lead you to the tutorials explain these things in (probably too much) in detail.

Bob Currier

Synthetic Apertrure

Tags: After Effects

Similar Questions

Maybe you are looking for

  • Local folder - lost Mails

    Hey there, I had my ultrabook with 2 IMAP accounts move emails into different rules/filters thunderbird folders. Now my Windows crashed and I had again to install it. After you have reinstalled thunderbird all of these emails are lost. What can I do?

  • How can I find all the plugins in the firefox browser

    HI I was wondering if I could ask a question how can I find all the installed plugins in the firefox lasted I would like to be able to know if, for example, if the shockwave plugin is updated and which version is currently installed in the firefox br

  • Update memory HP 110 430 PC's DESKTOP INTEL CELERON 1800

    The HP 110 430 DESKTOP INTEL CELERON 1800 will take care of the upgrade from 4 GB to 8 GB with no problems

  • Pavilion mini 300-010 in: no display after starting in safe mode

    Recently (2 weeks) bought the Pavilion Mini Office 300-010 and was well before decide me Flex my curiosity. the office is connected to my monitor VGA Samsung using the HDMI-VGA connector since the release of funds has no VGA or DVI - I usage options.

  • Need to remove an additional program.

    Original title: I have two differt om my computer programs do not how additional deleate one I did anyone can tell me how? A reader has been filled so I made a notherone but now I cleaned up my old one and I liked what I did. I'm not good at all this