On 08/07/2013 at 03:27, xxxxxxxx wrote:
Cinema 4D Version: R12-R14
Platform: Windows ;
Language(s) : C++ ;
In our latest release we replaced some parameters by a single parameter (custom datatype). My question is what is the suggested way to handle such parameter changes to maintain backward and also forward compability (loading of objects saved with old plugin).
Currently I do it like this:
When the latest version of the plugin is loaded I use Read() to set the new parameter by reading the old parameters. Then if the value of the new parameter changes I use SetDParameter() to also set the old parameters to maintain backward compability. Does anyone have a cleaner solution?