회원 로그인
|
카운터
카운터
global string $winMemoryName = "counterGeneratorMem"; global string $windowLayoutName = "JSB Counter Generator Ver 1.0"; global proc counterGeneratorMain() { global string $winMemoryName; if (`window -exists $winMemoryName`){ deleteUI $winMemoryName; } counterGeneratorUI; } global proc counterGeneratorUI() { global string $winMemoryName ; global string $windowLayoutName ; window -resizeToFitChildren true -maximizeButton false -titleBar true -sizeable true -menuBar true -menuBarVisible true -title $windowLayoutName $winMemoryName; columnLayout -adjustableColumn true -cal "left"; textFieldGrp -label "Start Frame ; " -text "1" startFrameUI; textFieldGrp -label "End Frame ; " -text "10" endFrameUI; button -label "Execute" -align "center" -command "counterGenerator"; showWindow $winMemoryName; } global proc counterGenerator() { string $textln; string $sur[]; string $sur2[]; int $i; string $frame_curve_group = "curve_Gen_curve"; string $frame_surface_group = "curve_Gen_surface"; group -n $frame_curve_group -em; group -n $frame_surface_group -em; float $startFrameValue, $endFrameValue; $startFrameValue = `textFieldGrp -q -text startFrameUI`; $endFrameValue = `textFieldGrp -q -text endFrameUI`; for($i = $startFrameValue ; $i <= $endFrameValue ; $i++){ currentTime $i; $textin = `currentTime -q`; $sur = `textCurves -ch 0 -f "Times New Roman|h-13|w400|c0" -t $textin`; $sur2 = `planarSrf -ch 1 -d 3 -ko 0 -tol 0.01 -rn 0 -po 0 $sur[0]`; currentTime $i; eval("setAttr " + $sur2[0] + ".visibility 1"); eval("setKeyframe " + $sur2[0] + ".v"); currentTime ($i-1); eval("setAttr " + $sur2[0] + ".visibility 0"); eval("setKeyframe " + $sur2[0] + ".v"); currentTime ($i+1); eval("setAttr " + $sur2[0] + ".visibility 0"); eval("setKeyframe " + $sur2[0] + ".v"); currentTime $i; parent $sur[0] $frame_curve_group; parent $sur2[0] $frame_surface_group; hide $frame_curve_group; } } counterGeneratorMain;
- count.mel (2.1KB) (1)
댓글 0개
| 엮인글 0개
466개(15/24페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
마야 뷰포트 네비게이션 팁 | 푸딩뱃살 | 43856 | 2020.04.06 17:22 | |
Maya 버전 별 Python 버전 | 푸딩뱃살 | 65046 | 2014.01.08 17:59 | |
>> | [Script] 카운터 | artsOne | 2703 | 2008.02.03 03:31 |
183 | [Rigging] [펌] 회사 캐릭터 셋업테스트 스크립트 | artsOne | 1657 | 2008.02.03 03:30 |
182 | [Script] [펌] 웨이트 작업시 모두 홀드시키는 멜 | artsOne | 3047 | 2008.02.03 03:25 |
181 | [Rigging] [펌] 금붕어 헤어와 소프트바디 시스템을 이용한 지느러미 움직임 구현. | artsOne | 1619 | 2008.02.03 03:24 |
180 | [Plugin] Advanced Skeleton v3.7 | artsOne | 3097 | 2011.10.07 18:37 |
179 | [Base] 윈도우7, 마야에서 타블렛 사용 시 뷰포트 끊기는 현상 | artsOne | 5481 | 2011.06.13 12:34 |
178 | [Rigging] 말 종류 뼈 셋팅 | artsOne | 2245 | 2010.09.03 14:32 |
177 | [참고] Stop Staring - Facial Modeling and Animation Don Right | artsone | 2336 | 2007.11.14 19:30 |
176 | [참고] MEL Scripting for Maya Animators | artsone | 4166 | 2007.12.17 04:37 |
175 | [참고] Mel Scripting For Maya Animators | artsone | 3744 | 2007.01.21 23:20 |
174 | [참고] MAYA MEL & EXPRESSION | artsone | 4506 | 2006.12.13 13:56 |
173 | [Base] (스크랩) 마야를 효율적으로 공부하는 방법 | artsone | 2653 | 2006.10.31 10:33 |
172 | [참고] 말 node | artsone | 2535 | 2006.10.30 10:58 |
171 | [참고] Final Rig 1.2 (마야) | artsone | 3780 | 2008.04.28 16:53 |
170 | [사이트] Character Rigging | artsone | 3044 | 2008.02.21 20:16 |
169 | [참고] Max for Maya | artsOne | 3661 | 2008.02.13 21:56 |
168 | [사이트] Igor Stefanovic | artsOne | 2230 | 2008.02.13 21:51 |
167 | [Plugin] Setup Machine 2 | artsOne | 2706 | 2008.02.12 12:43 |
166 | [참고] Character rig (마야) | artsone | 4075 | 2008.01.28 01:53 |
165 | [참고] pig 리깅 (마야) | artsOne | 3849 | 2007.06.19 16:11 |