Hi,
I'm generating a unique id for the effect based on composition id, layer id and a unique number. I'm storing the ID in sequence data. When I add the effect, there is no problem. I just create a unique ID for the new effect added when PF_Cmd_SEQUENCE_SETUP is called.
When I duplicate an effect, I get two calls to PF_Cmd_SEQUENCE_RESETUP, one for the new effect and one for the old effect. Both old and new effect will have the same unique ID as sequence data is also duplicated. I'm unable to differentiate between the old and new effects as all the data is for both is same. Even more issues with Copy/Cut/Paste effect.
So if I use the combination of Composition ID, Layer ID and the Effect index for generating Unique ID, may be it's possible to differentiate the effects (Not sure though). But this needs to be monitored whenever drag and drop of effect happens. Not efficient way I think.
So is there any data field in the effect that I can use which will not be duplicated or which maintains some default value when the effect is duplicated/copy/pasted.
Thanks,
Dheeraj