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


PyQt4를 이용한 위젯

artsOne | 2012.08.28 15:44 | 조회 3350

http://tech-artists.org/forum/showthread.php?2845-PyQt-Widget-in-Maya-Mel-UI-problem

import sip
from PyQt4 import QtGui, QtCore
import maya.OpenMayaUI as omui
import maya.cmds as m

UI_WIN_NAME = 'WidgetInMayaUI_win'
UI_WIN_TITLE = 'WidgetInMayaUI window'

class WidgetInMayaUI():

def __init__(self) :
    self.ui_createUI()

def ui_createUI(self):
    if m.window(UI_WIN_NAME, exists = True) : m.deleteUI(UI_WIN_NAME, window = True)
    self.window = m.window( UI_WIN_NAME, title = UI_WIN_TITLE, maximizeButton = False,)

    self.ui_LAY_mainForm = m.formLayout()
    self.attachLayout = m.frameLayout(labelVisible = False)
    m.setParent(self.ui_LAY_mainForm)

    self.ui_LAY_toolbar = m.columnLayout()
    m.symbolCheckBox(image = 'sortName', height = 35, width = 35)
    m.symbolCheckBox(image = 'sortName', height = 35, width = 35)
    m.symbolCheckBox(image = 'sortName', height = 35, width = 35)

    m.formLayout(self.ui_LAY_mainForm, e = True, attachForm = (self.attachLayout, 'top', 2))
    m.formLayout(self.ui_LAY_mainForm, e = True, attachControl = (self.attachLayout, 'right', 2, self.ui_LAY_toolbar))
    m.formLayout(self.ui_LAY_mainForm, e = True, attachForm = (self.attachLayout, 'bottom', 2))
    m.formLayout(self.ui_LAY_mainForm, e = True, attachForm = (self.attachLayout, 'left', 2))

    m.formLayout(self.ui_LAY_mainForm, e = True, attachForm = (self.ui_LAY_toolbar, 'top', 2))
    m.formLayout(self.ui_LAY_mainForm, e = True, attachForm = (self.ui_LAY_toolbar, 'right', 2))
    m.formLayout(self.ui_LAY_mainForm, e = True, attachForm = (self.ui_LAY_toolbar, 'bottom', 2))
    m.formLayout(self.ui_LAY_mainForm, e = True, attachNone = (self.ui_LAY_toolbar, 'left'))

    self.attachLayoutQ = sip.wrapinstance(long(omui.MQtUtil.findLayout(self.attachLayout)), QtCore.QObject)
    self.QtLayout = QtGui.QHBoxLayout()
    self.attachLayoutQ.setLayout(self.QtLayout)

    self.list = QtGui.QListWidget()
    self.list.addItem('aaa'); self.list.addItem('bbb'); self.list.addItem('ccc')
    self.QtLayout.addWidget(self.list)
    self.list.setParent(self.attachLayoutQ)

    m.showWindow(self.window)

def run():
    WidgetInMayaUI()
466개(16/24페이지)
마야
번호 제목 글쓴이 조회 날짜
공지 마야 뷰포트 네비게이션 팁 푸딩뱃살 42787 2020.04.06 17:22
공지 Maya 버전 별 Python 버전 푸딩뱃살 64097 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 3946 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] 저장 시 에러 첨부파일 푸딩뱃살 4646 2013.03.13 13:03
156 [Animation] 파도 리깅 참고 동영상 푸딩뱃살 3473 2013.03.13 13:00
155 [Script] vectorRenderGlobals 노드 푸딩뱃살 4338 2013.03.13 12:59
154 [Modeling] 모델링 버텍스 체크 팁 첨부파일 푸딩뱃살 3981 2013.03.12 18:16
153 [Script] skinPercent() artsOne 3455 2012.08.29 10:33
>> [Script] PyQt4를 이용한 위젯 artsOne 3351 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 3716 2010.05.04 10:35
146 [Rigging] blandShape 팁(차후 등록) artsOne 2348 2010.03.31 14:15
145 [Rigging] joint 위치에 따른 skin 모양 첨부파일 artsOne 3099 2010.03.31 12:32