コード例 #1
0
ファイル: skinWeightsUI.py プロジェクト: yazici/zootoolbox
    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)
コード例 #2
0
	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 )
コード例 #3
0
ファイル: skinWeightsUI.py プロジェクト: yazici/zootoolbox
    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)
コード例 #4
0
	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 )
コード例 #5
0
ファイル: skinWeightsUI.py プロジェクト: yazici/zootoolbox
 def on_selectMesh(self, *a):
     cmd.hilite(unHilite=True)
     cmd.select(self._mesh)
     mel.artAttrSkinToolScript(4)
コード例 #6
0
	def on_selectMesh( self, *a ):
		cmd.hilite( unHilite=True )
		cmd.select( self._mesh )
		mel.artAttrSkinToolScript( 4 )