Notifications
Clear all
[Closed] how does "<node>.mesh" work?
Apr 03, 2008 6:39 pm
When I run <node>.mesh , [color=Yellow]<editable_mesh_baseobject>.mesh [color=White]and …etc. According to Maxscript Helper it will make a copy of this object in mesh type , but I cannot see any new mesh.[/color][/color]
2 Replies
Apr 03, 2008 6:39 pm
That’s true!
It’s a lot like getting <node>.pos in that it’s a property without a representation. A node is like a wrapper; it holds the data needed to turn that TriMesh into something visible, tangible, and manipulable in the 3dsMax environment.
When you ask for just <node>.mesh, all you’re getting is the TriMesh. It would get representation when it’s put back into a “wrapper” and updated. For example:
b = createInstance Box()
ThisMesh = editable_mesh()
-- Note that B has no representation, and ThisMesh has nothing to represent.
ThisMesh.mesh = b.mesh
update ThisMesh
-- Now, B's mesh has representation, and should be in your viewport!
Cheers!