Re: [Maya-Python] New items are not added into QMenu

2019-01-15 Thread Justin Israel
On Wed, Jan 16, 2019, 2:17 PM likage wrote: > Thanks for the information, Justin. > After re-arranging the `self.separator` I managed to get the newly created > items to be slotted into the specified position of mine. > > While this seems to be working, as I tried to implement in the same >

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

2019-01-15 Thread 徐一雄
Hi Tenghao, Thank you for your reply. I still can't get the proper *_jiggleMap* list. In my code above, I can get the proper jiggleMap for each geometry(jiggleMap for current geoIndex) and I don't know how to store these jiggleMaps properly for further computing. The deform() method seems to go

Re: [Maya-Python] New items are not added into QMenu

2019-01-15 Thread likage
Thanks for the information, Justin. After re-arranging the `self.separator` I managed to get the newly created items to be slotted into the specified position of mine. While this seems to be working, as I tried to implement in the same makings into my actual tool, I keep getting `RuntimeError:

[Maya-Python] Re: connectAttr with set groups

2019-01-15 Thread Francesco
Didn't think of using the plusMinusAverage node but it works! I connected the rotation of the Master FK controller to input3D[0] and rotation of the FK controllers (not the set groups) to input3D[1] of the plusMinusAverage node. I also had to connect the rotation of the FK Master controller to

Re: [Maya-Python] New items are not added into QMenu

2019-01-15 Thread Justin Israel
On Wed, Jan 16, 2019 at 9:38 AM likage wrote: > Hi, thanks for getting back to me. It seems that the newly added items are > added to the end (bottom) of the QMenu instead of in-between the 'Add new > item' and the 'Default Item'.. > The documentation for insertAction(before, action) says it

Re: [Maya-Python] New items are not added into QMenu

2019-01-15 Thread likage
Hi, thanks for getting back to me. It seems that the newly added items are added to the end (bottom) of the QMenu instead of in-between the 'Add new item' and the 'Default Item'.. Also as mentioned in my first post, is it possible to create different QMenus for different tabs? Eg. I create

[Maya-Python] Re: connectAttr with set groups

2019-01-15 Thread Neil Roche
The simplest way would be to use a plusMinusAverage node and connect the rotation of the control and the rotation of the set group to the input3D[0] and input3D[1] plugs respectivley, set the operation to sum and then connect the output3D to your joint rotation so both objects will drive the

Re: [Maya-Python] query current layer in batch render process

2019-01-15 Thread Juan Cristóbal Quesada
Thanks Josh, but that doesnt work either, its querying the RenderSetup Widget Configuration. What im asking is to be notified of the render layer name when it is actually being rendered in batch process, therefore, independent from the main thread and GUI. This is kind of a very specific geeky