Exemplo n.º 1
0
 def registerAttribute(self, attrName):
     """
         Creates array of attribute names that will store data on module
     """
     if cmds.objExists((self.container + ".regAttribute")) == False:
         Util.addStringArrayAttribute(self.container,"regAttribute",[attrName])
     else:
         data = cmds.getAttr((self.container + ".regAttribute"))
         data.append(attrName)
         Util.setStringArrayData(self.container,"regAttribute",data)
         self.registeredAttributes.append(attrName)