회원 로그인
|
마야에서 .ui를 .py로 변환하기
:pyside2uic의 compileUi를 이용하여 ui파일을 py로 변경한다.
출처
https://ngreen.org/articles/converting-qt-ui-to-maya-python.html
- .ui 파일을 불러오면 'ui파일명_cvt.py' 형태로 저장한다.
마야 2017 업데이트5에 맞게 pyside2로 변경 (별거 없었음) |
# -*- coding : utf-8 -*- import os from pyside2uic import compileUi import maya.cmds as cmds def convert_qtui_to_py(): caption = 'Select QT UI file...' fileFilter = 'QT UI Files (*ui)(*.ui)' result = cmds.fileDialog2(ds=2, ff=fileFilter, cap=caption, fm=1) if None == result: return try: py_file = open(os.path.splitext(result[0])[0] + '_cvt.py', 'w') compileUi(result[0], py_file, False, 4, False) py_file.close() print('File converted.') except IOError: cmds.warning('Could not open file!') convert_qtui_to_py()
출처
https://ngreen.org/articles/converting-qt-ui-to-maya-python.html
댓글 0개
| 엮인글 0개
466개(5/24페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
마야 뷰포트 네비게이션 팁 | 푸딩뱃살 | 42383 | 2020.04.06 17:22 | |
Maya 버전 별 Python 버전 | 푸딩뱃살 | 63694 | 2014.01.08 17:59 | |
384 | [오류] Cannot find procedure'CgAbBlastPanelOptChangeCallback'. | 푸딩뱃살 | 3759 | 2019.07.15 11:33 |
383 | [Base] 지금까지 마야를 사용하면서 처음 본 Command Window | 푸딩뱃살 | 2290 | 2019.06.21 14:31 |
382 | [Plugin] 프레임워크를 위한 - mgear | 푸딩뱃살 | 3029 | 2019.06.11 10:38 |
381 | [Plugin] 스키닝을 쉽게 - brSmoothWeights | 푸딩뱃살 | 2944 | 2019.06.11 00:12 |
380 | [Plugin] QuatTwist | 푸딩뱃살 | 2316 | 2019.06.11 00:08 |
379 | [Plugin] weightDriver | 푸딩뱃살 | 2376 | 2019.06.11 00:06 |
378 | [Dev] devkit for Maya 2017 | 푸딩뱃살 | 2373 | 2019.06.04 11:29 |
377 | [Rigging] weight paint 메모리 누수 | 푸딩뱃살 | 2327 | 2019.05.31 15:14 |
376 | [Plugin] VR-Plugin - 마야 VR 플러그인 | 푸딩뱃살 | 2129 | 2019.05.25 00:29 |
375 | [Rendering] Arnold 렌더러 강좌 | 푸딩뱃살 | 2659 | 2019.04.03 10:06 |
374 | [Modeling] fbx 익스포트 시 폴리곤이 깨질 때 | 푸딩뱃살 | 1059 | 2019.04.02 18:56 |
>> | [Script] 마야에서 .ui를 .py로 변환하기 | 푸딩뱃살 | 2674 | 2019.03.18 18:24 |
372 | [Plugin] PiStage 간단 튜토리얼 | 푸딩뱃살 | 1590 | 2019.03.18 17:36 |
371 | [Script] Maya에서 pip 설치 | 푸딩뱃살 | 2720 | 2019.02.18 17:20 |
370 | [참고] Facial Rigging - Facs Based (By Agora Image) | 푸딩뱃살 | 2438 | 2019.01.07 15:21 |
369 | [Modeling] 뷰포트에서의 오류 | 푸딩뱃살 | 2048 | 2018.12.04 15:06 |
368 | [Plugin] ARTv2 - 리깅툴 | 푸딩뱃살 | 3149 | 2018.09.05 17:43 |
367 | [Dev] 파이썬으로 .mll 컴파일 가능? | 푸딩뱃살 | 2604 | 2018.08.25 13:27 |
366 | [Plugin] The Setup Machine 3 | 푸딩뱃살 | 2825 | 2018.08.24 11:28 |
365 | [Modeling] fbx 익스포트 시 메시 찢어짐 | 푸딩뱃살 | 2492 | 2018.06.21 18:10 |