THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/07/2012 at 15:17, xxxxxxxx wrote:
Hi, I cannot find any way to enable, disable (grey out) or even hide user controls for my plugin.
For example, I have a checkbox named "Automatic". When this is checked, I want a spline control to be either hidden, or greyed out.
I have come that far that I programmatically, without reloading the plugin and without restarting C4D, can change the value of a checkbox, in the Execute event:
def Execute(self, tag, doc, op, bt, priority, flags) :
tag = True
This is all.
Considering how simple this is to do, to change the Controls default value, I wish there was possible to do this:
tag.Enabled = False
tag.Visible = False
But (of course) it has to be way more complicated than this. And I also might want to hide / grey out the group the control in question belongs to, but I have not found a way to access the group itself, at all. Any help is much appreciated!
There is a thread here, but I have not succeeded in making anything here work in my own plugin.