def on_storeB( self, *a ): kw = {} if self.UI_file.getValue(): kw[ 'filepath' ] = Path( self.UI_file.getValue() ) joints = cmd.ls( type='joint', r=True ) jointMeshes = removeDupes( cmd.listRelatives( joints, ad=True, pa=True, type='mesh' ) ) skinWeights.saveWeights( jointMeshes, **kw )
def on_storeA(self, *a): kw = {} if self.UI_file.getValue(): kw['filepath'] = Path(self.UI_file.getValue()) skinWeights.saveWeights(cmd.ls(sl=True), **kw)
def on_storeA( self, *a ): kw = {} if self.UI_file.getValue(): kw[ 'filepath' ] = Path( self.UI_file.getValue() ) skinWeights.saveWeights( cmd.ls( sl=True ), **kw )