On 18/06/2015 at 09:11, xxxxxxxx wrote:
Hi all,
I want to update my PluginGUI.
So I make a chek and then wanna activate one ore the other group in my gui
But what is to be done that my MainDialog is updated
Here is my code:
def UpdateLayout(self) :
doc = c4d.documents.GetActiveDocument()
pree_check = []
pree_check = a_polygon_selektion_tag_is_selected(doc)
is_selected = pree_check[0]
self.LoadDialogResource(res.DLG_MAIN)
if is_selected == True:
self.Enable(res.GRP_DEAKTIVATED_REASON, True)
print "es ist etwas selektiert"
self.RemoveElement(res.GRP_POLYGONS_AUTOMATICLY)
else:
print "nichts ist selektiert"
self.RemoveElement(res.GRP_DEAKTIVATED_REASON)
self.Enable(res.GRP_POLYGONS_AUTOMATICLY, True)
return True
Thanks a lot