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.

How to show attached shader with MPxSurfaceShape?

How to show attached shader with MPxSurfaceShape?

haggi_master
Advocate Advocate
761 Views
1 Reply
Message 1 of 2

How to show attached shader with MPxSurfaceShape?

haggi_master
Advocate
Advocate

Hi,

I wrote my own surfaceShape derived from MPxSurfaceShape. I can attach a shader and the shader is correctly displayed if I select the shape and let the shader display in the hypershade. It even renders fine, but for some reason I am unable to see it in the attributeEditor. Normal shapes display the attached shader at the right side in the attributeEditor, plugin shapes do not. I tried it with the apiMeshShape example and got the same result, no shader in the attributeEditor. is there any way to make the shader visible in AE?

0 Likes
Accepted solutions (1)
762 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

Like AE*Template.mel nodes, there is also an AE*Related.mel for nodes to display related nodes in attribute editor.

 

In scripts/AETemplates folder, you could find AEmeshRelated.mel. Change the function name to AEapiMeshRelated and rename it to AEapiMeshRelated.mel will make apiMesh display related nodes in attribute editor.  You could use it as a reference to write your own related template for your surface shape nodes.

 

Yours,

Li