Set the mask in AE and use AEGP_GetLayerNumMasks to query the number of masks. The return value is 0
Hello All
I have a question when using c++ to develop AE export plug-in,Set the mask in AE and use AEGP_GetLayerNumMasks to query the number of masks,The return value is 0,The specific code is as follows:
AE Version: 2025
A_long numMasks = 0;
RECORD_ERROR(suites.MaskSuite6()->AEGP_GetLayerNumMasks(layerHandle, &numMasks));
for (int i = 0; i < numMasks; i++) {
AEGP_MaskRefH maskHandle;
RECORD_ERROR(suites.MaskSuite6()->AEGP_GetLayerMaskByIndex(layerHandle, i, &maskHandle));
auto mask = ExportMask(context, maskHandle);
masks.push_back(mask);
RECORD_ERROR(suites.MaskSuite6()->AEGP_DisposeMask(maskHandle));
}Has anyone encountered similar problems?
