Re: [Maya-Python] Tox Unittests

2016-07-26 Thread Sebastian Kral
Hi again, thank you for sharing your insight. Will need to take another look at Docker, sounds like a great approach. Cheers, Sebastian On Wednesday, 13 July 2016, Andres Weber wrote: > Oh man I didn't know there was a container for this. Thanks Marcus, this > is

Re: [Maya-Python] maya api question

2016-07-26 Thread Alok Gandhi
You are returning a cross product when smooth is false. A cross product is a vector. Also as I said before, your example does not show implementation of getCrossProduct() so it is not clear what actually you are returning. But again, as I mentioned earlier, if your method name is getCrossProduct()

Re: [Maya-Python] maya api question

2016-07-26 Thread Justin Israel
On Wed, Jul 27, 2016 at 10:39 AM likage wrote: > I do not have any code to show. This is something that I have copied and > paste somewhere.. > > But if say I manage to have some values and I set a variable as 'test. > asMPoint()', am I correct to say that it will try to

Re: [Maya-Python] maya api question

2016-07-26 Thread likage
I do not have any code to show. This is something that I have copied and paste somewhere.. But if say I manage to have some values and I set a variable as 'test. asMPoint()', am I correct to say that it will try to read in 3 values and it will be using the class Point, asMPoint function? And

Re: [Maya-Python] maya api question

2016-07-26 Thread Justin Israel
On Wed, 27 Jul 2016, 4:51 AM likage wrote: > Why do you thing it would be returning a list vs a dict vs other? And I >> don't mean these questions in a condescending way. I think it would be good >> to hear your thought process on how you view the way a class works. Then

Re: [Maya-Python] maya api question

2016-07-26 Thread likage
> > Why do you thing it would be returning a list vs a dict vs other? And I > don't mean these questions in a condescending way. I think it would be good > to hear your thought process on how you view the way a class works. Then we > can address the specifics. What do you expect to get back

Re: [Maya-Python] Qt.py (Maya 2017, PySide2)

2016-07-26 Thread Marcus Ottosson
Hi Cesar, What this does is enable your PySide2-compatible software to also run on any other binding. What this means in practice is that when you eventually re-factor your Qt 4 scripts for Qt 5 then they can continue to work on Qt 4 if you use Qt.py. Sorry for any confusion. Best, Marcus On

Re: [Maya-Python] Qt.py (Maya 2017, PySide2)

2016-07-26 Thread Cesar Saez
Hi, So you have to write for qt5 bindings in order to fallback to older bindings? How does this help to limit refactoring on old scripts? (i.e. using the new QtWidgets instead of patching QtGui). Don't get me wrong, I have done and worked with similar solutions on different studios and I fully

Re: [Maya-Python] Re: when to use 'is not' and !=

2016-07-26 Thread Cesar Saez
Also empty containers bool test to false, so if you ever implement __iter__ and __len__ in one of your base classes the bool test will probably give you unexpected results. tl;dr: - *is* / *is not* test identity - == != > < test value Cheers! -- You received this message because you are

Re: [Maya-Python] maya api question

2016-07-26 Thread Alok Gandhi
I would comment on the second part of your question : Regarding the getNormal() method, the short answer is yes. To write clean readable code, the only thing that is of importance (more so in python) is to name your methods, variable with utmost care. Since getNormal() would return a MVector in

[Maya-Python] Qt.py (Maya 2017, PySide2)

2016-07-26 Thread Fredrik Averpil
Hello, Today, Maya 2017 was released. It comes with a bunch of changes, where one change is of particular interest to me as a Python developer; PySide has been replaced with PySide2 (as a result of Autodesk replacing Qt4 with Qt5). This essentially makes all PySide/PyQt scripts written for Maya