Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya & Python

Maya & Python

animat99aka
Observer Observer
443 Views
1 Reply
Message 1 of 2

Maya & Python

animat99aka
Observer
Observer

Dear Support Team,

I'm currently implementing a custom curve in maya with Python. I'm using the MPxSurfaceShape and MPxSurfaceShapeUI class.
I have troubles understanding some of the concepts. Unfortunately I found no examples for implementing a custom shape node with Python, except one for the Maya Python API 2.0 and c++.
Is it possible to get some Python examples of a implementation of a custom shape node?
I have some troubles with the bounding box, the selection of my curve components and maya always crashes on the MPxGeometryIterator.
If you cannot provide me any examples it would be great if I could forward you my error messages, along more detailed information about the troubles I have.

 

Thanks in adavance

0 Likes
444 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I think it would be better to move to Python API 2.0. Some features like component selection(MPxComponentConverter) aren't available in Python API 1.0. I could try to have a look at your sample code, but I can't guarantee it could work as you expected.

 

Yours,

Li

0 Likes