Hi,
currently I am making an object plugin.
At the moment I am not sure how to solve certain things.

As you can see on the figure above, the plugin has only a few parameters in its description. It is a res.file , header.file .....
It creates buildings.
From a password protected zipfile with the models it reads the folders and add them dynamically to the cycle parameter (dropdown menu).
After you load the plugin it creates also an basement, you can also choose the type of the basement. Each building type has 2 basement types, 2 level types and 2 top types.
So now I need to add a level, when I press the "Add Level " button (ID = c4d.PY_ADD_LEVEL).
At the moment when I press the button I just add the model files.
the model structure happens in a second document. Then I return a clone of the model tree
I create a second document and add for instance the level model which corresponds to the building type for the Cycle Menu
What I need is I want to create a parameter like the Basement Type parameter on the figure. A simple Quicktabradio with two entries.
So the user clicks the "Add Level" Button and such a Entry with DESC_NAME "Level_0" will be added below
If the user clicks the button again another parameter will be added.
If the user clicks delete level the last level parameter will be deleted
I roughly know how to do this but the problem is....the button sends a message to node.Message().
I can catch the message but how to create the parameter in the description because I thought parameters must be created in node.GetDDescription() or may I add a parameter also in the node.Message() method or in an extra method in my class?
Also I am not sure what is better, first to create the parameter in the description and due to this add the model,
or first create the model and then read the models in the model tree and add then the parameters.
I also want that the user is able to switch for instance the level type of level 3 for example and it loads another level type just for this third level.
Best Regards