-
1. Re: Confusion with PF_Cmd_SEQUENCE_FLATTEN command.
shachar carmi Jun 29, 2010 1:43 AM (in response to dheeraj_c)yes, the FLATTEN command is sent to the old effect.
that's how it should be.
it tells the effect to collect all it's data and prepare it for storing. (something the new effect doesn't need to do)
both the old and the new effects get the UNFLATTEN command,
but only the pre-exsiting one gets the FLATTEN call.
if you need to tell the old effect from the new, you have to store some identification of the old effect in the way we've discussed before.
during unflatening you should check if it's the old effect or the new one, and act accordingly.
-
2. Re: Confusion with PF_Cmd_SEQUENCE_FLATTEN command.
dheeraj_c Jun 29, 2010 2:23 AM (in response to shachar carmi)Thanks for the reply Shachar.
shachar carmi wrote:
if you need to tell the old effect from the new, you have to store some identification of the old effect..
But when the effect is duplicated all the data related to it is also duplicated. So even the sequence_data is duplicated. Now how do I know which effect is old and which is new when it comes to SEQUENCE_RESETUP? I'm asking this because for both old and the new duplicated effect, all data will be same.
Thanks for sharing your ideas Shachar.
-
3. Re: Confusion with PF_Cmd_SEQUENCE_FLATTEN command.
shachar carmi Jun 29, 2010 8:14 AM (in response to dheeraj_c)sooo...
during the FALTTEN event the effect stores some data about itself:
i am effect #3 on layerID 1024 in comp itemID 17.
during the UNFLATTEN commnad the effect checks who he is.
if he is effect #3 on layerID 1024 on comp itemID 17,
then it must mean it's the old effect.
if any of the data is different, it means it's the new effect.
there is the possibility that the UNFLATTEN commnad happenes before the effect has it's own new effectRefH,
so you might want to wait with that check until the first updateParamsUI call.
-
4. Re: Confusion with PF_Cmd_SEQUENCE_FLATTEN command.
dheeraj_c Jun 30, 2010 3:46 AM (in response to shachar carmi)Many thanks for explaining clearly Shachar. I will try it out.


