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.

Creating polySurfaceShape node

Creating polySurfaceShape node

morinnicolas8944
Advocate Advocate
1,635 Views
2 Replies
Message 1 of 3

Creating polySurfaceShape node

morinnicolas8944
Advocate
Advocate

Hi!

 

I have a custom node that gets associated to a mesh node. When created, I insert it right before the mesh node with its mesh output connected to the inMesh attribute of the mesh, just like what Maya does with the Mesh -> Smooth command in the menu. This usually works fine, but I have a problem when the mesh does not have any history since I don't have a mesh input for my node.

 

For example, when adding a base mesh from the content browser in the Sculpting tab, that base mesh will be added without history.

 

If I do "Smooth" on that base mesh, Maya creates a new mesh node called polySurfaceShape1 and connects that to the input of the polySmoothFace node. So I would like to know how I can create such a node by myself in the same way that Smooth does it. I would prefer to do it in Python, but I can also use MEL and C++.

 

I included screenshots of the node editor before and after applying Smooth to illustrate what I would like to do. I would like to create a mesh like the one circled in AfterSmooth.PNG.

 

I found a similar question here

https://forum.highend3d.com/t/creating-polysurfaceshape-node-for-remeshing-node/39939/1

and the reply seems to imply that there is a wrapper that could do that kind of operation in the devkit, but the details are not available.

 

Thanks!

0 Likes
Accepted solutions (1)
1,636 Views
2 Replies
Replies (2)
Message 2 of 3

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I checked devkit, it sounds like he is referring to meshOpCmd in the devkit.

 

There is a polyModifier class processing tweaking/history in that sample.

 

Yours,

Li

0 Likes
Message 3 of 3

morinnicolas8944
Advocate
Advocate

Thanks! That's probably it!

 

For reference, I also found more documentation here:

http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__files_Polygon_API_polyModifierCmd_example_htm

 

and another way to do it here:

http://ewertb.soundlinker.com/api/api.022.php

0 Likes