Answered
How to use AEGP_ExecuteScript?
I want to get the fontsize using AEGP_ExecuteScript, but I don't how to use it,please give me an example. thanks!
I want to get the fontsize using AEGP_ExecuteScript, but I don't how to use it,please give me an example. thanks!
There should be an example in the SDK if I recall correctly. But here's some background on it:
https://ae-plugins.docsforadobe.dev/aegps/aegp-suites.html?highlight=AEGP_ExecuteScript#aegp-utilitysuite6
And here's an example:
AEGP_SuiteHandler suites(in_data->pica_basicP);
A_Boolean outAvailablePB;
AEGP_MemHandle outResultPH;
AEGP_MemHandle outErrorStringPH;
ERR(suites.UtilitySuite4()->AEGP_IsScriptingAvailable(&outAvailablePB));
ERR(suites.UtilitySuite4()->AEGP_ExecuteScript(NULL, "alert(123);", true, &outResultPH, &outErrorStringPH));
ERR(suites.MemorySuite1()->AEGP_FreeMemHandle(outResultPH));
ERR(suites.MemorySuite1()->AEGP_FreeMemHandle(outErrorStringPH));Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.