On 11/08/2015 at 04:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) : C++ ;
---------
Greetings !
I have 2 questions for the plugin GetDDescription.
I have created a tag plugin, which can be assigned to objects and configure their internal data.
I use a resource file to create 5 groups of parameters.
One of them is responsible to show which one of the other 4 groups will be active at any given time.
So, 1 group has 4 checkboxes. The other 4 groups (pages) have the exact same parameters, but with different values. I would like to ask which one of the following scenarios is more efficient.
-
Write 5 groups in the resource file. Whenever a user toggles any checkbox on/off, the corresponding page will appear.
-
Write 2 groups in resource file. One for the checkboxes and the other for the values. Whenever the user switches the state of checkboxes, change the values of the corresponding parameters. Use Show / Hide in case the corresponding checkbox is on/off.
What i notice is that the more groups i have activated , the slower it becomes when i enable a new checkbox.
Another thing i would like to ask is that which is the best way to add new groups. Instead of having 5 groups of parameters, i would like to start with 1 and let the user add new groups using a button.
Is it wise to have a structure with the new Parameter IDs instead of the const values defined (enum) in my_plugin.h and my_plugin.res.
Thank you very much for your time and allow me to apologize for the long post.