I have a function that creates a mesh with something like this
TriObject *triobj = CreateNewTriObject();
Mesh &mesh = triobj->GetMesh();
////
some other stuff here
/////
theMeshNode = ip->CreateObjectNode(triobj);
TSTR name(_T(“testMesh”));
ip->MakeNameUnique(name);
theMeshNode->SetName(name);
This works fine a mesh is created inside max, But i want to continue to do stuff with maxscript with this mesh, Is there any way to return it somehow into a variable so i can assign it to a variable inside maxscript like.
theNewMesh = ProcessTheMesh() – and this returns the mesh i created in c++
Guillermo