Importer + source settings effects not working on macOS but works on Windows
Hi, we're having trouble getting the "Importer + source settings effect" working on macOS.
We have a macOS and Windows version which are built from the same code but the macOS version doesn't connect the Importer to the source settings effect - On Windows, it works correctly.
On Windows:
Importing the file triggers PF_Cmd_SEQUENCE_SETUP in the Source Effect where the PerformSourceSettingsCommand function is called and the source settings pane correctly fills intself in the UI.
The source settings effect is hidden from the 'Effects' pane in Premiere by setting:
'out_data->out_flags = PF_OutFlag_SEND_UPDATE_PARAMS_UI | PF_OutFlag_I_AM_OBSOLETE;' in the PF_Cmd_GLOBAL_SETUP command in the effect.
On Mac:
Importing the file does not trigger any commands in the Source Effect. There is no UI populated in the 'Source' pane and the Importer never receives 'SDKPerformSourceSettingsCommand'
The source settings effect is not hidden and shows up in the 'Effects' pane even though the the same code:
'out_data->out_flags = PF_OutFlag_SEND_UPDATE_PARAMS_UI | PF_OutFlag_I_AM_OBSOLETE;' in PF_Cmd_GLOBAL_SETUP is run.
Changing the match name has no effect on Mac, but on Windows it only works when the match names are the same (As expected).
In SDKGetInfo8 of the importer, the sourceSettingsMatchName of SDKFileInfo8 is set as follows:
const auto& RawSourceSettingsMatchName = std::wstring(L"AE.") + Constants::RawSourceSettingsMatchNameW;
#ifdef PRWIN_ENV
wcscpy_s(SDKFileInfo8->sourceSettingsMatchName, RawSourceSettingsMatchName.size()+1, RawSourceSettingsMatchName.data());
#endif
#ifdef PRMAC_ENV
wcscpy((wchar_t*)SDKFileInfo8->sourceSettingsMatchName, RawSourceSettingsMatchName.data());
#endifThanks,
Russell