I'm trying to set layer flag from an AEGP. The flag I'm interested in is Time Remapping.
If I use
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_TIME_REMAPPING, TRUE));
time remapping is not enabled.
Then I test
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_TIME_REMAPPING, TRUE));
ERR(suites.LayerSuite5()->AEGP_GetLayerFlags(current_layerH, &layer_flagsP));
if (layer_flagsP & AEGP_LayerFlag_TIME_REMAPPING)
{
suites.UtilitySuite3()->AEGP_ReportInfo(S_my_id, "TR enabled!");
}
the message does not show up.
Other flags such as
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_SHY, TRUE));
or
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_COLLAPSE, TRUE));
pose no problem.
I should mention that current_layerH points to a layer that is a comp. I can enable time remapping using
ERR(suites.CommandSuite1()->AEGP_DoCommand(2153));
but I would prefer to avoid it.
Thanks for your help.
If I use
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_TIME_REMAPPING, TRUE));
time remapping is not enabled.
Then I test
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_TIME_REMAPPING, TRUE));
ERR(suites.LayerSuite5()->AEGP_GetLayerFlags(current_layerH, &layer_flagsP));
if (layer_flagsP & AEGP_LayerFlag_TIME_REMAPPING)
{
suites.UtilitySuite3()->AEGP_ReportInfo(S_my_id, "TR enabled!");
}
the message does not show up.
Other flags such as
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_SHY, TRUE));
or
ERR(suites.LayerSuite5()->AEGP_SetLayerFlag(current_layerH, AEGP_LayerFlag_COLLAPSE, TRUE));
pose no problem.
I should mention that current_layerH points to a layer that is a comp. I can enable time remapping using
ERR(suites.CommandSuite1()->AEGP_DoCommand(2153));
but I would prefer to avoid it.
Thanks for your help.