|
In general words, I need to create an object in 3DMax that behaves likes the editable mesh do in the way that it should be possible to select and edit faces/verties, etc. However, need that by pressing a button I could instance another mesh from the scene and edit it in this object.
Trying to accomplish that, I create a simpleObject plugin and make it extends from Editable_Mesh, then (just for testing) I assigned a box mesh to the plugin’s mesh so that the box could be edited. When this work I will make a button that could pick another object and edit it.
The problem is that after the mesh gets created and assigned, it is displayed in the viewport, but on the modify panel, it only appears the type of the object and not the expandable tree that appears with regular Editable_Mesh objects that let you select the vertices, meshes, and the other subobject components. Am I missing something?
BTW, the plugin also crash Max some times, Am I doing something wrong when assigning the mesh, is there another way of doing it?
plugin simpleObject StaticObject name:"StaticObject" category:"Editor" extends: Editable_mesh classID:#(0xe855567c, 0xbcd73b8b) (
local pChild
on buildMesh do
(
box = createinstance box width: 100 height: 100 length: 100
mesh = box.mesh
)
tool create
(
on mousePoint click do
(
case click of
(
1: (coordsys grid (nodeTM.translation = gridPoint)
#stop)
)
)
)
)
|