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
def GetDEnabling(self, node, id, t_data, flags, itemdesc) :
if id.id == TESTPLUGIN_VALUE: return bool(node[c4d.TESTPLUGIN_BOOL])
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:
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
I'll upload this plugin here.