Пример #1
0
 def __init__(self, name):
     # create update variable if module is reloaded get variables from
     # container
     self.name = name
     self.update = 0
     self.blueprintVar = 0
     self.rigVar = 0
     self.connectVar = 0
     self.registeredAttributes= []
     self.inputs = {}
     self.outputs = {}
     self.connections = {}
     
     # create default hierarchy for module
     # if Module already exists use existing objects
     if Util.checkForExistingObject( (self.name + "_CNT"), "container" ):
         self.container = (self.name + "_CNT")
     else:
         self.container = cmds.container( n= (self.name + "_CNT"))
         Util.storeString(self.container, "type", "Module")
     if Util.checkForExistingObject( (self.name + "Root_GRP"), "transform" ):
         self.rootGrp = (self.name + "Root_GRP")
     else:
         self.rootGrp = cmds.group( n = (self.name + "Root_GRP"), em = True )
         self.storeInput(self.rootGrp,"root")
     
     # class specific init
     self.initialize()
Пример #2
0
 def initialize(self):
     # store variables in container
     Util.storeString(self.container, "type", "SpineJoints")
Пример #3
0
 def initialize(self):
     # store variables in container
     Util.storeString(self.container, "type", "Root")