회원 로그인
|
skinPercent()
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)] )
댓글 0개
| 엮인글 0개
466개(16/24페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
마야 뷰포트 네비게이션 팁 | 푸딩뱃살 | 43017 | 2020.04.06 17:22 | |
Maya 버전 별 Python 버전 | 푸딩뱃살 | 64330 | 2014.01.08 17:59 | |
164 | [참고] fish 리깅 (마야) | artsone | 4077 | 2007.06.19 09:54 |
163 | [참고] Horse 리깅 (마야) | artsone | 4063 | 2007.06.19 09:52 |
162 | [참고] dog 리깅 (마야) | artsone | 3951 | 2007.06.19 09:50 |
161 | [참고] Shark 리깅 (마야) | artsone | 3823 | 2007.04.02 20:11 |
160 | [참고] ollie v1.5 (마야) | artsone | 4049 | 2007.01.19 17:56 |
159 | [Plugin] Advanced Skeleton v1.85 Evaluation | artsone | 2494 | 2006.12.10 02:11 |
158 | [참고] LowMan v1.2 (마야) | artsone | 3394 | 2006.11.22 18:32 |
157 | [Base] 저장 시 에러 | 푸딩뱃살 | 4650 | 2013.03.13 13:03 |
156 | [Animation] 파도 리깅 참고 동영상 | 푸딩뱃살 | 3480 | 2013.03.13 13:00 |
155 | [Script] vectorRenderGlobals 노드 | 푸딩뱃살 | 4343 | 2013.03.13 12:59 |
154 | [Modeling] 모델링 버텍스 체크 팁 | 푸딩뱃살 | 3988 | 2013.03.12 18:16 |
>> | [Script] skinPercent() | artsOne | 3461 | 2012.08.29 10:33 |
152 | [Script] PyQt4를 이용한 위젯 | artsOne | 3355 | 2012.08.28 15:44 |
151 | [Script] Error: File contains unknown nodes or data | artsOne | 3700 | 2012.08.28 15:36 |
150 | [Base] Maya 다운로드 | artsOne | 4631 | 2011.07.04 20:50 |
149 | [Rigging] Maya 2011 새로운 기능 - Skinning Method (skin 꼬임 현상 해결) | artsOne | 5024 | 2010.08.25 21:06 |
148 | [Base] Maya 2011 스타일 바꾸기 | artsOne | 4155 | 2010.06.08 01:21 |
147 | [Base] 단축키 옮기기 | artsOne | 3722 | 2010.05.04 10:35 |
146 |
[Rigging] |
artsOne | 2352 | 2010.03.31 14:15 |
145 | [Rigging] joint 위치에 따른 skin 모양 | artsOne | 3106 | 2010.03.31 12:32 |