THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/08/2006 at 11:43, xxxxxxxx wrote:
Cinema 4D Version: 9.102
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
How would you go about permanently storing Tool plugin settings (or even storing them in between tool sessions)? You have to initialize them at some point - ala InitTool() - , but that defeats the entire purpose since this is called on every invocation of the tool.
On 27/08/2006 at 12:43, xxxxxxxx wrote:
Maybe InitDefaultSettings()? I'd need more information to understand what this the 'data' BaseContainer actually do.
On 27/08/2006 at 14:45, xxxxxxxx wrote:
Okay, I figured out how to retain settings using the data BaseContainer and descriptions in my tool's description header. Making them stick between sessions will need to be tested (prefs lib or my own setting file maybe).
On 30/08/2006 at 03:02, xxxxxxxx wrote:
you can check in InitTool if your id's are avaiable in the container and set them and the values if not. You could also give the container's id the pluginid. In InitTool just check if the id matches. If true, then the tool was already initialized, if false fill the container with initial values.
That seems to work pretty good for me.