회원 로그인
정보기억 정보기억에 체크할 경우 다음접속시 아이디와 패스워드를 입력하지 않으셔도 됩니다.
그러나, 개인PC가 아닐 경우 타인이 로그인할 수 있습니다.
PC를 여러사람이 사용하는 공공장소에서는 체크하지 마세요.
소셜네트워크 서비스를 통해서 로그인하시면 별도의 로그인 절차없이 회원서비스를 이용하실 수 있습니다.


최근 게시물

1.노션에서 작성 중

1.노션에서 작성 중

개편하기 전까지 노션에서 작성 중

2024.04.04//read more

2.ChatGPT

2.ChatGPT

OpenAI로 대규모 언어 모델대화형...

2023.03.16//read more

3.노코딩 게임 엔진 - 빌..

3.노코딩 게임 엔진 - 빌..

빌드 지원안드로이드iOS윈도우즈특이사...

2023.03.14//read more

4.(완료) 미접속 회원 정..

4.(완료) 미접속 회원 정..

[완료] 36명의 회원을 정리하였습니...

2023.02.16//read more

5.매뉴얼 플러스 - 전자제..



안정적인 DNS 서비스 DNSEver
DNS Powered by DNSEver.com


skinPercent()

artsOne | 2012.08.29 10:33 | 조회 3454
skinPercent()
:스킨
import maya.cmds as cmds

# Create a joint chain and a polygonal plane and bind them as skin

cmds.select(d=True)
cmds.joint(p=(-3.0, 0.0,-12.0))
cmds.joint(p=(-3.0, 0.0, -5.0))
cmds.joint(p=(1.0, 0.0, 5.5))
cmds.joint(p=(6.0, 0.0, 10.0))
cmds.polyPlane(w=20.0,h=20.0,sx=25,sy=25)
cmds.skinCluster( 'joint1', 'pPlane1' )

# For vtx[100], set the weight wrt joint1 to 0.2, the weight
# wrt joint3 to 0.8 and adjust the remaining weights to keep
# the overall weight normalized (i.e. set all other joints to zero,
# since the weights we are setting sum to 1.0)
#

cmds.skinPercent( 'skinCluster1', 'pPlane1.vtx[100]', transformValue=[('joint1', 0.2), ('joint3', 0.8)])

# Get the weight values corresponding to all of the influences
#
cmds.skinPercent( 'skinCluster1', 'pPlane1.vtx[100]', query=True, value=True )

# Get the weight values that are above 0.5
#
cmds.skinPercent( 'skinCluster1', 'pPlane1.vtx[100]', ignoreBelow=0.5, query=True, value=True )

# Get the weight of vtx[100] corresponding to joint1
#
cmds.skinPercent( 'skinCluster1', 'pPlane1.vtx[100]', transform='joint1', query=True )

# Normalize the existing weights for vtx[100]
#
cmds.skinPercent( 'skinCluster1', 'pPlane1.vtx[100]', normalize=True )

# Reset the weights for vtx[100] to their default values
#
cmds.skinPercent( 'skinCluster1', 'pPlane1.vtx[100]', resetToDefault=True )

# Zero all the weights that are below 0.1
#
cmds.skinPercent( 'skinCluster1', 'pPlane1', pruneWeights=0.1 )

# Zero all the weights
#
cmds.skinPercent( 'skinCluster1', 'pPlane1', pruneWeights=100, normalize=False )

# Assign weights to a large number of vertices,
# several at a time to reduce the number of calls
# to the skinPercent command.
#
for i in range(0,675,10):
    cmds.select('pPlane1.vtx[%i]' % i,'pPlane1.vtx[%i]' % (i+1), 'pPlane1.vtx[%i]' % (i+2), 'pPlane1.vtx[%i]' % (i+3), 'pPlane1.vtx[%i]' % (i+4), 'pPlane1.vtx[%i]' % (i+5), 'pPlane1.vtx[%i]' % (i+6), 'pPlane1.vtx[%i]' % (i+7), 'pPlane1.vtx[%i]' % (i+8), 'pPlane1.vtx[%i]' % (i+9))
    cmds.skinPercent( 'skinCluster1',transformValue=[('joint1', 0.5),('joint2', 0.5)] )
466개(16/24페이지)
마야
번호 제목 글쓴이 조회 날짜
공지 마야 뷰포트 네비게이션 팁 푸딩뱃살 42774 2020.04.06 17:22
공지 Maya 버전 별 Python 버전 푸딩뱃살 64085 2014.01.08 17:59
164 [참고] fish 리깅 (마야) 첨부파일 artsone 4071 2007.06.19 09:54
163 [참고] Horse 리깅 (마야) 첨부파일 artsone 4057 2007.06.19 09:52
162 [참고] dog 리깅 (마야) 첨부파일 artsone 3945 2007.06.19 09:50
161 [참고] Shark 리깅 (마야) 첨부파일 artsone 3814 2007.04.02 20:11
160 [참고] ollie v1.5 (마야) 첨부파일 artsone 4045 2007.01.19 17:56
159 [Plugin] Advanced Skeleton v1.85 Evaluation 첨부파일 artsone 2490 2006.12.10 02:11
158 [참고] LowMan v1.2 (마야) 첨부파일 artsone 3393 2006.11.22 18:32
157 [Base] 저장 시 에러 첨부파일 푸딩뱃살 4645 2013.03.13 13:03
156 [Animation] 파도 리깅 참고 동영상 푸딩뱃살 3472 2013.03.13 13:00
155 [Script] vectorRenderGlobals 노드 푸딩뱃살 4338 2013.03.13 12:59
154 [Modeling] 모델링 버텍스 체크 팁 첨부파일 푸딩뱃살 3981 2013.03.12 18:16
>> [Script] skinPercent() artsOne 3455 2012.08.29 10:33
152 [Script] PyQt4를 이용한 위젯 artsOne 3350 2012.08.28 15:44
151 [Script] Error: File contains unknown nodes or data artsOne 3696 2012.08.28 15:36
150 [Base] Maya 다운로드 첨부파일 artsOne 4627 2011.07.04 20:50
149 [Rigging] Maya 2011 새로운 기능 - Skinning Method (skin 꼬임 현상 해결) 사진 첨부파일 artsOne 5016 2010.08.25 21:06
148 [Base] Maya 2011 스타일 바꾸기 artsOne 4148 2010.06.08 01:21
147 [Base] 단축키 옮기기 artsOne 3715 2010.05.04 10:35
146 [Rigging] blandShape 팁(차후 등록) artsOne 2348 2010.03.31 14:15
145 [Rigging] joint 위치에 따른 skin 모양 첨부파일 artsOne 3097 2010.03.31 12:32