Hi.
I try to activate time remapping on a Layer, without success.
I tried AEGP_SetLayerFlag without.
I tried the Do_Command hint from here http://forums.adobe.com/message/1799231#1799231 nothing worked.
Here's my portion of code :
ERR(suites.FootageSuite5()->AEGP_NewFootage(S_my_id,ANIM_pathZ, NULL,&options, AEGP_InterpretationStyle_NO_DIALOG_GUESS, NULL, &ANIMH));
ERR(suites.FootageSuite5()->AEGP_AddFootageToProject(ANIMH, AnimationfolderH, &ANIM_itemH));
AEGP_LayerH ANIM_layerH = NULL;
A_Boolean is_add_validB = FALSE;
ERR(suites.LayerSuite5()->AEGP_IsAddLayerValid(ANIM_itemH, AnimationcompH, &is_add_validB));
if (is_add_validB)
{
ERR(suites.LayerSuite5()->AEGP_AddLayer(ANIM_itemH, AnimationcompH, &ANIM_layerH));
ERR(suites.LayerSuite7()->AEGP_SetLayerFlag(ANIM_layerH,AEGP_LayerFla g_TIME_REMAPPING,true));
ERR(suites.CommandSuite1()->AEGP_DoCommand(2153));
i don't know why the AEGPDoCommand fails to deliver for you.
you can however use AEGP_ExecuteScript() and use java from within your plug-in to enable the time remapping.
here is a thread that shows the complete process of using AEGP_ExecuteScript:
http://forums.adobe.com/message/3625857#3625857%233625857
it actually goes into more trouble than you need.
a simple AEGP_ExecuteScript("simplest java code to enable time remapping") will do the trick.
North America
Europe, Middle East and Africa
Asia Pacific