Hi Sjoerd, Setting the parameter to its own value is not particularly expensive - so I'm not sure I would necessarily worry about that. You could use dbFindProp/dbGetPropByName on the instance with each property name to find if it's actually set on the instance or not and only set it if it's not - but I doubt this would really save any time though... Note that you could instead add this code to CCSinvokeCdfCallbacks somewhere so that you don't have to put it in each and every callback. The main reasons for using storeDefault=t are: You may want the option to change the default value in the CDF (and maybe PCell too) but want any existing default instances to keep their original defaults You want to have different defaults between CDF and PCell (hardly ever a good idea though). It's definitely far less efficient to use storeDefault on all your parameters though - it costs a lot to store all this info on each and every instance. So my preference would be to not do this. Regards, Andrew.
↧