Ejemplo n.º 1
0
    def commandLineCall(self, keywords):
        """
        Initialize variables to values passed in via command line parameters.
        """
        self.guiName = keywords['guiName']  # Name of the GUI
        self.selType = keywords[
            'selType']  # add, replace, or tgl. Defines behaviour of selection buttons.
        self.saveToDir = keywords[
            'saveToDir']  # Directory to write the GUI file to
        self.ikFkMatch = keywords[
            'ikFkMatch']  # 0, 1 = no/yes. Include ikFkMatching in GUI?
        self.groups = keywords['groups']  # Dict: { "group name":objects[] }
        self.joint_up = keywords['joint_up']  #

        if self.ikFkMatch == 1:  # Needed to setup ik/fk matching on rig GUI script
            self.l_handCnt = keywords['l_handCnt']
            self.l_ikChain = keywords['l_ikChain']
            self.l_fkChain = keywords['l_fkChain']

            self.r_handCnt = keywords['r_handCnt']
            self.r_ikChain = keywords['r_ikChain']
            self.r_fkChain = keywords['r_fkChain']

        self.sNames = standardNames.standardNames()

        self.createObjects()
Ejemplo n.º 2
0
 def __init__(self,**keywords):
     # Standard names object
     self.sNames = standardNames.standardNames()
     
     # Used to store names of all created nodes, 
     # to be returned when the tool is done.
     self.createdNodes = [] 
     
     # Command line call
     self.commandlineCall(keywords)
Ejemplo n.º 3
0
	def __init__(self,**keywords):
		
		# Standard names object
		self.sNames = standardNames.standardNames()
		
		# Used to store names of all created nodes, 
		# to be returned when the tool is done.
		self.createdNodes = {} 
		
		self.commandlineCall(keywords)
Ejemplo n.º 4
0
 def __init__(self,**keywords):
     # standard names object
     self.sNames = standardNames.standardNames()
     
     # Create library instance
     self.lib = cml.commonMayaLib()
     
     # Store the final node names to be returned to client
     self.createdNodes = {}
     
     # Command line call
     self.commandlineCall(keywords)
Ejemplo n.º 5
0
    def __init__(self, **keywords):
        # common library
        self.commonLib = commonMayaLib.commonMayaLib()

        # standard names object
        self.sNames = standardNames.standardNames()

        # Used to store names of all created nodes,
        # to be returned when the tool is done.
        self.createdNodes = {}

        self.commandlineCall(keywords)
Ejemplo n.º 6
0
    def __init__(self, **keywords):
        # Standard names object
        self.sNames = standardNames.standardNames()

        # Common tools as a library
        self.lib = cml.commonMayaLib()

        # Used to store names of all created nodes,
        # to be returned when the tool is done.
        self.createdNodes = {}

        # Check if command line call
        self.commandlineCall(keywords)
Ejemplo n.º 7
0
 def __init__(self,**keywords):
     # Standard names object
     self.sNames = standardNames.standardNames()
     
     # Common tools as a library
     self.lib = cml.commonMayaLib()
     
     # Used to store names of all created nodes, 
     # to be returned when the tool is done.
     self.createdNodes = {} 
     
     # Check if command line call
     self.commandlineCall(keywords)
Ejemplo n.º 8
0
	def __init__(self,*args):
		"""
		Run the initial prompt method.
		"""
		#--- Main version of the rig
		self.version = '1.3'
		
		#--- Library of common maya functions
		self.lib = commonMayaLib.commonMayaLib()
		
		#--- Create standard names object
		self.sNames = standardNames.standardNames()		
		
		self.createGUI()
Ejemplo n.º 9
0
 def __init__(self,**keywords):      
     # Create library instance
     self.lib = cml.commonMayaLib()
     
     # Create standard names instance
     self.sNames = standardNames.standardNames()
     
     # Used to return the name of created nodes
     self.createdNodes = []
       
     # Check if command line call
     if len(keywords):
         self.commandlineCall(keywords)
     else:
         self.buildGUI()
Ejemplo n.º 10
0
    def __init__(self, **keywords):
        # Create library instance
        self.lib = cml.commonMayaLib()

        # Create standard names instance
        self.sNames = standardNames.standardNames()

        # Used to return the name of created nodes
        self.createdNodes = []

        # Check if command line call
        if len(keywords):
            self.commandlineCall(keywords)
        else:
            self.buildGUI()
Ejemplo n.º 11
0
    def __init__(self, **keywords):
        """
        Build the bind skeleton
        """
        # Store command line data
        self.orientation = keywords['orientation']  # String, i.e. 'xyz'
        self.numToes = keywords['numToes']

        # Create standard names object
        self.sNames = standardNames.standardNames()
        self.lib = commonMayaLib.commonMayaLib()

        # Store names of created joints
        self.bindJoints = []

        self.createJoints()
Ejemplo n.º 12
0
 def __init__(self,**keywords):
     """
     Build the bind skeleton
     """
     # Store command line data
     self.orientation = keywords['orientation'] # String, i.e. 'xyz'
     self.side = keywords['side']
     self.numToes = keywords['numToes']
     
     # Create standard names object
     self.sNames = standardNames.standardNames()
     
     # Store names of created joints
     self.rigJoints = []
     
     self.createJoints()
Ejemplo n.º 13
0
 def commandLineCall(self,keywords):
     """
     Initialize variables to values passed in via command line parameters.
     """
     self.guiName = keywords['guiName']     # Name of the GUI
     self.selType = keywords['selType']          # add, replace, or tgl. Defines behaviour of selection buttons.
     self.saveToDir = keywords['saveToDir']      # Directory to write the GUI file to
     self.ikFkMatch = keywords['ikFkMatch']      # 0, 1 = no/yes. Include ikFkMatching in GUI?
     self.groups = keywords['groups']            # Dict: { "group name":objects[] }  
     self.joint_up = keywords['joint_up']        # 
     
     if self.ikFkMatch == 1:                     # Needed to setup ik/fk matching on rig GUI script
         self.l_handCnt = keywords['l_handCnt']
         self.l_ikChain = keywords['l_ikChain']
         self.l_fkChain = keywords['l_fkChain']
         
         self.r_handCnt = keywords['r_handCnt']
         self.r_ikChain = keywords['r_ikChain']
         self.r_fkChain = keywords['r_fkChain']
     
     self.sNames = standardNames.standardNames()
     
     self.createObjects()