def RigIcon_Execute(): log("RigIcon_Execute called", C.siVerbose) from rigicon.icon import Icon icon = Icon.create() if siget("preferences.modeling.selectgeneratedobj"): si.SelectObj(icon.obj) return True
def connect(self, obj): if not obj: return self._connect = obj param = siget("{0}.{1}.Reference".format(self.connect_op.FullName, CONNECT_COMPOUND)) try: param.Value = str(self._connect.FullName) except: param.Value = "" # attribute display self.attr_display.Parameters("enable").Value = obj is not None if self.attr_display.Parameters("enable").Value: for color in "rgb": p = "color" + color self.attr_display.Parameters(p).Value = getattr(self, p)