Esempio n. 1
0
	def run_apply_weighting_command( self ):
		data = methods.load_json( self.file_path_field.getText( ) )
		if not data:
			self.warning('Data is invalid')
			return False
		
		methods.apply_weighting( self.transform, data = data )
Esempio n. 2
0
    def run_apply_weighting_command(self):
        data = methods.load_json(self.file_path_field.getText())
        if not data:
            self.warning('Data is invalid')
            return False

        methods.apply_weighting(self.transform, data=data)
Esempio n. 3
0
def run_skin_application( transform = None, data = None, file_path = '' ):
	"""
	Main method call for the skin converter to apply skin weights to the transform.
	
	Returns [ result, message ]
	Result  : Whether or not the application was successful
	Message : message about the results. If data == False, message holds more info.
	"""
	result, data = methods.determine_data_to_source( data, file_path )
	if not result:
		maya.cmds.warning( data )
		return result, data
		
	result, message = methods.apply_weighting( transform, data = data )
	if not result:
		maya.cmds.warning( message )
		
	return result, message