Skip to main content
Participant
July 26, 2006
Question

Understanding plug-ins writing

  • July 26, 2006
  • 1 reply
  • 1117 views
Hi,
I started studying AE SDK, and I have problem with understanding it. It goes about Skeleton template plug-in. There is the Render function. Here is the code:

static PF_Err
Render (
PF_InData *in_data,
PF_OutData *out_data,
PF_ParamDef *params[],
PF_LayerDef *output )
{
PF_Err err = PF_Err_NONE;
AEGP_SuiteHandler suites(in_data->pica_basicP);

/* Put interesting code here. */

ERR(suites.WorldTransformSuite1()->copy(in_data->effect_ref,
¶ms[SKELETON_INPUT]->u.ld,
output,
NULL,
NULL));

return err;
}

First: What is the ERR mackro doing? There is no description in SDK.
Second: What is WorldTransformSuite1() and what is it doing? I'v never see write : function->member_function, so it's looks like WorldTransformSuite1() is stucture initialization, however, in the class of object suites isn't any declaration of this structure/function.
Could someone explain it to me?

PS. Sorry for my english, I hope that i didn't do too many mistakes.
This topic has been closed for replies.

1 reply

Bruce Bullis
Legend
August 1, 2006
ERR() is defined in AE_Macros.h; basically, it says "if err is currently 0 (no error), then err equals..." whatever is in the ERR().

AEGP_SuiteHandler is a big utility function for acquiring and releasing function suites. WorldTransformSuite is defined in AE_EffectCBSuites.h.

The "Find Definition" function in your IDE should be of assistance.

As always, feel free to write to me directly.