회원 로그인
정보기억 정보기억에 체크할 경우 다음접속시 아이디와 패스워드를 입력하지 않으셔도 됩니다.
그러나, 개인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


카운터

artsOne | 2008.02.03 03:31 | 조회 2702
카운터

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;


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