Home Website Youtube GitHub

mGear 5.0 feedback

I updated mGear to 5.06. I’ll use this thread to post some issues I’ve been running into following the update.

They are all due to some differences between the new pymaya and pymel.
All my post build scripts use pymel.
Blanket switching all pymel to pymaya isn’t viable due to several class methods missing in mgear.pymaya.

The biggest source of errors when running my builds is due to the fact that when I initialize a node as a PyNode using pymel it’s object is different enough that any mgear.pymaya that I pass the PyNode to will error.
For exampe rigbits.addNPO.

So then when I pymaya.Pynode initialize. All the pymel.connectAttr methods errors.

The work around I use is to surgically PyNode using pymaya when I need to add NPOs, and change use the pymaya.connectAttr methods on those nodes.

There are many other errors that pop up if I use pymaya instead of pymel. One example is when creating a constraint. The pymel version of parentConstraint has a getWeightAliasList class method. pymaya doesn’t.

Thanks, hope this helps @Miquel !

Hi Alon,

mGear 5 is still beta. And it is still tagged “Pre-release”. Miquel has requested using the feedback form to provide feedback: https://github.com/mgear-dev/mgear/issues

When you click “New Issue” there is a template to fill out in full, including the full stack-trace. And you can also search the open issues to make sure you aren’t reporting something that already was reported.

You should make the choice yourself, but I don’t recommend using beta/pre-release software except for testing, feedback, or contributing PRs. For production, I would recommend sticking with stable versions.

I’m going to close this thread. Thanks for testing!

2 Likes

@alonza1

PyMaya is not a replacement of Pymel. The main goal is to help remove the dependency of pymel in mGear core.
PyMaya just have the fucntionality needed for that purpose.
Also PyMaya and Pymel objects are not and will be not compatible. You can still using pymel, but you will need to handle the object conversion.
I hope this clarify a little the goal and future use of PyMaya :wink:

1 Like