Esempio n. 1
0
def saveWeightList(nCloth, attr, filePath=None, force=False):
    '''
	'''
    # Build Weight List
    wt = getVertexWeights(nCloth, attr)
    wtList = WeightList(wt)

    # Save Weight List
    if filePath: filePath = wtList.saveAs(filePath, force)
    else: filePath = wtList.saveAs()

    # Return Result
    return filePath
Esempio n. 2
0
def saveWeightList(nCloth,attr,filePath=None,force=False):
	'''
	'''
	# Build Weight List
	wt = getVertexWeights(nCloth,attr)
	wtList = WeightList(wt)
	
	# Save Weight List
	if filePath: filePath = wtList.saveAs(filePath,force)
	else: filePath = wtList.saveAs()
	
	# Return Result
	return filePath