- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
Solved! Go to Solution.