Hi folks,
I am to stupid for this I guess :-)
I created an Object Plugin and so the res, header and str files.
The plugin works fine so far. But now I want to make some parameters uneditable, when the user switches a LONG with some Quicktabradio buttons, because some parameters have no impact when a specific mode is entered.
I was able to hide the parameters successfully in my nodedata.GedDescription(self, node, id......) function
with setBool...
But when the plugin is getting started for the first time, it looks odd when some parameters suddenly appear once the user clicked some buttons. It is confusing.
But as I have read in the forum it doesn´t work with the c4d.DESC_EDITABLE Description.
So do I have to use the NodeData.GetDEnabling Method?
so do I have to overload this function in my class with and what do I have to write in this class:
def GetDEnabling(self, node, id, t_data, flags, itemdesc):
pass
- Where do I have to call this function? In my GetDDescription Method?
.
so for clarifying??
node = op
id = c4d.PY_LED_ANIMATION_DISTANCE
t_data = c4d.DESC_EDITABLE
-
what is itemdesc????**
-
the itemdesc argument do I get the container with **```
decription.GetParameterI(c4d.PY_LED_ANIMATION_DISTANCE, ar=None)
I do not really understand some things here.
===============================================
ok in the following figure you can see the entry
-
- Modus id = c4d.PY_LED_MODE with Quicktabradio int 0=dynamisch, 1=fest, 2=Buchstaben Ticker
-
- Animationdistanz id = c4d.PY_LED_ANIMATION_DISTANCE
-
- Vertikale Animationsdistanz id = c4d.LED_VERT_ANIMATION_DISTANCE
once the user checks Modus/dynamisch the parameter 2. and 3. should turn to Not-Editable.
If he checks Modus/fest and Modus/Buchstaben Ticker it should be editable
Best Regards
Tom