Importer + source settings effects SDK initial values
We're struggling with how a source settings effect can initialise its values based on the properties of the media file in the importer.
To quote the SDK: (Page 13/14)
"For DPX, the initial parameters and default prefs are based on the bit depth of the video. These default prefs are passed back to the effect, which sets the initial param values and stashes a copy of them in sequence_data to use again for future calls to PF_Cmd_SEQUENCE_RESETUP."
How is it possible to set initial parameter values in an effect in this way? This contradicts the After Effects SDK which states that you cannot change parameter values anywhere except during PF_Cmd_USER_CHANGED_PARAM and during PF_Cmd_EVENT.
Parameters are created during PF_Cmd_PARAMS_SETUP which occurs only once when Premiere Pro is launched. By the time the importer plugin gets the opportunity to read a media file, the parameters are already created and their values can't be modified outside of a user initiated 'PF_Cmd_USER_CHANGED_PARAM'.
Can Adobe share a source code example showing how it is possible to apply initial values to the source effect from the importer?
Thanks
Russell