Re: [Maya-Python] Problem with add maya widget to Qt layout

2012-03-09 Thread Justin Israel
Thanks. As always…I am cute. I'm not exactly sure what you want to be able to control from Maya. It would work just like any other python object, except you would use the methods of your pyqt widget, and not have to use the maya commands module. In case what you meant is that you were having tr

Re: [Maya-Python] Problem with add maya widget to Qt layout

2012-03-08 Thread 张宇
Thanks a lot Super Cute Justin! There is a small doubt, I know how to control the attribute with the QSlider, but how to change the silder's value by the attribute? Create a scriptJob? Then with the same problem, how to edit the QSlider's in maya. 2012/3/9 Justin Israel > Hey there, > > This iss

Re: [Maya-Python] Problem with add maya widget to Qt layout

2012-03-08 Thread Justin Israel
Hey there, This issue, as far as I know, relates to something I addressed in one of my maya python training videos (vol 2). When you create a ui in Qt Designer and then have maya generate the actual GUI from it, its doing translations to represent widgets. With that in mind, the exact hierarchy an

[Maya-Python] Problem with add maya widget to Qt layout

2012-03-08 Thread 张宇
I want to add a attrFieldSliderGrp to my Qt window, I create the Qt UI with QtDesinger, there is another file to load the .ui file, I get the layout's path in maya with MQtUtil.fullName(), I got it. The QVBoxLayout's name is "SDK_VL", When used mc.setParent(layoutName) I get a wrong feedback: # Er