def on_selectVerts(self, *a): selJoints = self.UI_tsl.getSelectedItems() if not selJoints: return verts = [] for j in selJoints: verts += meshUtils.jointVertsForMaya(j) if verts: cmd.hilite([self._mesh]) cmd.select(verts) mel.artAttrSkinToolScript(4)
def on_selectVerts( self, *a ): selJoints = self.UI_tsl.getSelectedItems() if not selJoints: return verts = [] for j in selJoints: verts += meshUtils.jointVertsForMaya( j ) if verts: cmd.hilite( [ self._mesh ] ) cmd.select( verts ) mel.artAttrSkinToolScript( 4 )
def on_selectIntersectingVerts(self, *a): selJoints = self.UI_tsl.getSelectedItems() if not selJoints: return allVerts = [] jointVerts = {} for j in selJoints: jointVerts[j] = verts = meshUtils.jointVertsForMaya(j) allVerts += verts allVerts = set(allVerts) commonVerts = [] for j, jVerts in jointVerts.iteritems(): commonVerts += allVerts.intersection(set(jVerts)) if commonVerts: cmd.hilite([self._mesh]) cmd.select(commonVerts) mel.artAttrSkinToolScript(4)
def on_selectIntersectingVerts( self, *a ): selJoints = self.UI_tsl.getSelectedItems() if not selJoints: return allVerts = [] jointVerts = {} for j in selJoints: jointVerts[ j ] = verts = meshUtils.jointVertsForMaya( j ) allVerts += verts allVerts = set( allVerts ) commonVerts = [] for j, jVerts in jointVerts.iteritems(): commonVerts += allVerts.intersection( set( jVerts ) ) if commonVerts: cmd.hilite( [ self._mesh ] ) cmd.select( commonVerts ) mel.artAttrSkinToolScript( 4 )
def on_selectMesh(self, *a): cmd.hilite(unHilite=True) cmd.select(self._mesh) mel.artAttrSkinToolScript(4)
def on_selectMesh( self, *a ): cmd.hilite( unHilite=True ) cmd.select( self._mesh ) mel.artAttrSkinToolScript( 4 )