Hide attributes

On 01/01/2018 at 08:11, xxxxxxxx wrote:

is it possible to alter already existed description?
I have an object generator plugin that has 2 attributes. Slider and CheckBox.
Currently, I'm only ghosting the slider by using CheckBox But I want to completely hide it.

TESTPLUGIN_ID = 1000001 #Temporary ID
TESTPLUGIN_VALUE = 10000 #Real Slider
TESTPLUGIN_BOOL = 10001 #Bool CheckBox
  
class Testplugin(c4d.plugins.ObjectData) :
  
    def Init(self, node) :
        self.InitAttr(node, float, TESTPLUGIN_VALUE)
        node[TESTPLUGIN_VALUE] = 0
  
        self.InitAttr(node, bool, TESTPLUGIN_BOOL)
        node[TESTPLUGIN_BOOL] = True
        return True
  
    def GetDEnabling(self, node, id, t_data, flags, itemdesc) :
        if id[0].id == TESTPLUGIN_VALUE: return bool(node[c4d.TESTPLUGIN_BOOL])
        return True

On 01/01/2018 at 11:57, xxxxxxxx wrote:

You will need to use the DESC_HIDE in GetDDescription(), gr4ph0s already provided a link to such discussion:
https://plugincafe.maxon.net/topic/9824/13229_hide-descelements-r18
Have a look at the last post in above discussion

On 01/01/2018 at 19:57, xxxxxxxx wrote:

Sorry, I somehow missed this answer by gr4ph0s
It helped. 

I'll upload this plugin here.
https://www.dropbox.com/s/ryq9r41qnvnbpnt/Test Plugin1.zip?dl=0