[Maya-Python] Re: Qt's Widget

2013-01-20 Thread Daniel Lindsey
I personally like to use python to do the initial node writing, to make sure my logic is sound and I get all my work flow issues worked out. Then if the node is too slow I will eventually get around to make the plugin a c++ node. I also do this for convenience too because I tend to work on all

[Maya-Python] Re: Qt's Widget

2013-01-20 Thread dgovil
Think of it this way, is the time you save using C++'s performance greater than the time you would spend writing, optimizing , compiling and maintaining the same C++ code. The advantage to Python is that it's very easy to read, maintain, distribute, compile and share. It's performance is good

Re: [Maya-Python] Re: Qt's Widget

2013-01-20 Thread Justin Israel
Again, no. Its not a black and white statement like "whatever python can do, c++ can do it better". It is also not that python is for beginners and c++ is for large projects. If you look around, you will see mixed examples. There are huge Python projects out there and there are tiny command line c+

Re: [Maya-Python] Re: Qt's Widget

2013-01-20 Thread Tuan Nguyen
Yeah, like when you handle a deform problem, most of them are plugin i think. I know that what Python can do, C++ can do it better. Then can i understand it like this? Python is for scripting, solving small problem that suddenly popup, or small tool. In a long,large project, or if you wanna be a ch

Re: [Maya-Python] Re: Qt's Widget

2013-01-20 Thread Justin Israel
Ya, I hope I wasn't being misleading. There are things that will require c++ to achieve proper performance. What I mean is that simply writing in c++ won't equal a gain across the board. As you put it, you can't just disregard it as an option entirely. It comes down to profiling the code in questio

Re: [Maya-Python] Re: Qt's Widget

2013-01-20 Thread Christopher Evans
This performance increase often cannot be overlooked. If you do anything with meshes or animations especially. Not to mention that many C++ functions are still not exposed to openMaya, but many times a C++ plugin will do something in milliseconds but the python code could take minutes. On Sat, J

Re: [Maya-Python] Re: Qt's Widget

2013-01-19 Thread illunara
Thank Justin, i were confuse about it all the time. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this group, send email to python_inside_maya@googlegroups.com. To unsubscribe from this group, send email to

Re: [Maya-Python] Re: Qt's Widget

2013-01-19 Thread Justin Israel
The auto correction on my new phone switched "Qt" to "at" On Jan 20, 2013 8:37 AM, "Justin Israel" wrote: > Pyside/pyqt is not limited. At Designer is not the language. It is a tool. > This tool is more useful for c++ > > The things you would find missing from the python bindings are things that

Re: [Maya-Python] Re: Qt's Widget

2013-01-19 Thread Justin Israel
Pyside/pyqt is not limited. At Designer is not the language. It is a tool. This tool is more useful for c++ The things you would find missing from the python bindings are things that are not needed in python. Auto desk doesn't support pyqt/pyside. They support at and users have to build python bi

Re: [Maya-Python] Re: Qt's Widget

2013-01-19 Thread illunara
Well, if it possibles, i would love to do all those UI-setup: paint,event,drag-drop in the UI file, for convenient, also easy to manage, right? :) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this grou

Re: [Maya-Python] Re: Qt's Widget

2013-01-19 Thread Sascha Kremers
I don't think it's limited. Just think about how many widgets you would need to serve every purpose out of the box, you'd have to choose one out of thousand. By subclassing I can modify it to my personal needs. And when you become more involved in qt development you'll start reusing own class

Re: [Maya-Python] Re: Qt's Widget

2013-01-19 Thread illunara
But PyQt is quite limited, isn't it. You can't edit the code inside QtDesigner, many item in QtGui is not present. Just some basic form, and you have to write it all inside after subClass.My friend told me that i should write this on C, or using the original QT's app from nokia. Why people chose

Re: [Maya-Python] Re: Qt's Widget

2013-01-17 Thread Tuan Nguyen
Didn't read the docs careful again. Thank Justin, i will run a few test now :D On Fri, Jan 18, 2013 at 1:55 AM, Justin Israel wrote: > I think if you did not want a parent-child relationship and just a > position constraint, then you may need to do that by reacting to the > itemChange() of the s

Re: [Maya-Python] Re: Qt's Widget

2013-01-17 Thread Justin Israel
I think if you did not want a parent-child relationship and just a position constraint, then you may need to do that by reacting to the itemChange() of the source item: http://doc.qt.digia.com/qt/qgraphicsitem.html#itemChange -- You received this message because you are subscribed to the Google G

[Maya-Python] Re: Qt's Widget

2013-01-17 Thread illunara
Thank for the suggestion, Sascha. Btw, in the QGraphicsScece, can i attach an item (QGraphicsItems) to another one?,it not like parent. More like get the item's position and attach another one to follow it? (like pointConstrain in Maya) -- You received this message because you are subscribed