Re: [Maya-Python] Re: maya.cmds vs pymel speed?

2017-11-19 Thread Simon Payne
Lol. Indeed. I look forward to the tenth anniversary of “mc v pymel speed?” 🙂 Should be commemorated in a few years time with a golden maya manual, a leaflet reminding everyone that Autodesk/which ever owner - did not invent pymel and a large slice of red princess cake with a big black ‘M’ on th

Re: [Maya-Python] Re: maya.cmds vs pymel speed?

2017-11-19 Thread Marcus Ottosson
This is a 7 year old thread. Sometimes it takes time to find the right words. ​ ​ -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python

[Maya-Python] Re: PyMel orientJoint() usage

2017-11-19 Thread Simon Anderson
Can I ask why use pyMel, when you have a much faster and more pythonic API, om2? On Sunday, 19 November 2017 06:11:28 UTC+11, Tom Whitzer wrote: > > I am curious if anyone could provide me with an example of the the > orientJoint() function in PyMel. I have been searching online to see how to >

[Maya-Python] Where is MPxJoint?

2017-11-19 Thread Marcus Ottosson
Hi all, I’m putting together a series of new nodes, including DG and transform nodes, but can’t seem to find how to make joints. Here’s what I figured for a basic transform node. - basic transform.py This one is subclassi

Re: [Maya-Python] Re: PyMel orientJoint() usage

2017-11-19 Thread Marcus Ottosson
the information that I am getting seem a bit muddied What information *have* you been getting? Also, where are you finding that function? Your example doesn’t work for me, and looking through the source doesn’t bring

Re: [Maya-Python] Re: PyMel orientJoint() usage

2017-11-19 Thread haggi
That's because Pymel is not PyAPI. Pymel simplifies the work with non-api related tasks a lot. And you can combine the simplified Pymel MObject with the python API. With a pure api access you have to make a MSelectionList get the current MObject etc. With pymel you can access the MObject or MF

Re: [Maya-Python] Re: PyMel orientJoint() usage

2017-11-19 Thread Tom Whitzer
Thank you both for getting back to me. I found the information on it here . I am working on a script that creates joints at the positions of selected objects. I ha

[Maya-Python] Re: deleting instances in maya 2018

2017-11-19 Thread vilkdage
This approach seemed like the easiest way to find newly created widget objects. I could not make any of your suggestion work, but what did work was querying and editing workspaceControl, and deleteUI. Thanks! -- You received this message because you are subscribed to the Google Groups "Python

[Maya-Python] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2017-11-19 Thread when al
YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with *bank of America* and The owner of Saad Hospital and Schools in the Eastern Province in *Saudi Arabia* and the Chairman of the Board of Directors of Awal Bank in *Bahrain* Wit

Re: [Maya-Python] Sphinx - autodoc a class extending a mocked module

2017-11-19 Thread johan Borgström
Instead of using the "autodoc_mock_imports" in the conf.py I "manually mocked" the PySide classes. Now the documentation is generating for classes that extends the PySide. import mock sys.modules['PySide2'] = mock.Mock(QtWidgets=object) One downside to this is that the base class will be object

[Maya-Python] Array Attribute on maya python api deformer node

2017-11-19 Thread degner.alex via Python Programming for Autodesk Maya
hi together, I have been trying to write a custom deformer using the maya python api which basically is a shrink wrap deformer using a custom vector to project each vertex to the another mesh. The deformer works fine as is. I really would like to add one option though which I cannot figure out