[Closed] Get mesh from modifier?
Is there a way to get a mesh from a specific modifier?
Basically, I have a node with two modifiers applied, both of which are applying deformations to the mesh. For example, the modifier stack looks like this…
Bend
Taper
Editable Poly
Is there a way to get the mesh data from the Taper modifier? I need the Bend to still be enabled, and I need to be able to pull the mesh data on the fly. I have previously pulled from the baseobject and from the final mesh, but I am not sure how to get it from a specific modifier.
Thanks.
Hi Mathieson,
as far as I know, the only way to get the mesh from a specific point in the modifier stack is to turn off every modifier after that point, get the mesh, and enable them again.
Even in the SDK it is the procedure that was enforced before they introduced “Eval” method in IDerivedObject, which unfortunately is not available in any form in MaxScript.
Form SDK Reference:
“This method (read IDerivedObject::Eval) allows you to evaluate the pipeline (read getting Geometry from a certain point in the Stack) starting with a specific modifier index. Prior to version 4.0 you had to turn all the modApps off (read Modifiers in MaxScript), evaluate and then turn them on again. Now this can be easily done by specifying the modifier index (unfortunately in SDK only).”
- Enrico
Thanks Enrico. Not the news I was hoping for, but I’m glad you were able to provide me with the answer.
I guess I will create a clone of the node and just instance over the modifiers up until the point where I want to be able to extract the data. I don’t like the idea of having a duplicate mesh in the scene, but that should allow me to at least get the information I am looking for. Just doing RnD at this point anyway.