Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Maya's issue with assigning material on plugin shape

8703303
Explorer

Maya's issue with assigning material on plugin shape

8703303
Explorer
Explorer

At first, I thought the issue was with our plugin's code, but later it became clear that the same problem exists in Maya's apiMeshShape sample code.

When a material is applied to a shape, everything seems fine, except when you select the 'Select Objects with Material' option from the material object. At that moment, the 'Shader * not found' warning appears, and the shape is not selected.

The only thing I managed to do was overriding the renderGroupComponentType() belonging to MPxSurfaceMesh to return kMeshPolygonComponent or kSurfaceFaceComponent instead of 0. This stops the 'Shader * not found' message from appearing, but now the 'select' message shows up in the script editor output window, and nothing gets selected, i.e., 'select -r '.

0 Likes
Reply
201 Views
1 Reply
Reply (1)

8703303
Explorer
Explorer

Is here the right place to contact Maya's developer?

0 Likes