Updating GUI

  • 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]   
            if is_selected == True:   
                self.Enable(res.GRP_DEAKTIVATED_REASON, True)   
                print "es ist etwas selektiert"   
                print "nichts ist selektiert"   
                self.Enable(res.GRP_POLYGONS_AUTOMATICLY, True)   
        return True   

    Thanks a lot

  • On 19/06/2015 at 06:45, xxxxxxxx wrote:


    you can update a group of your dialog layout using LayoutChanged(), typically in combination with LayoutFlushGroup(). You find and extensive dialog example in the C++ GitHub repository.

    Best wishes,

  • On 10/07/2015 at 10:09, xxxxxxxx wrote:

    Hello Kissling,

    was your question answered?

    Best wishes,

Log in to reply