Notifications
Clear all

[Closed] SDK SimpleObject2 with MNMesh ?

Hi, I was wondering if there was anyway to use MNMesh within a SimpleObject2 plugin instead of Mesh. If not (which I believe is the case ) which class type should I be using instead of SimpleObject2 ?? Thanks

9 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

i would write a modifier instead of an object

btw. why do you need mnmesh? do you want to have an editable_poly object at the end, or you want to use some mnmesh methods only?

Unfortunately, it needs to be an Object is there no way of using MNMesh then ?? and a bit of both, but more having it an editable poly.

could you give a little more details of what you want to achieve? i don’t see a solution with using simpleobject but it might be some workaround

Sure, at the moment, its an Object tool that just rebuilds any selected object within my object plugin. Which I’ve done within Mesh. But as most of my objects are PolyObjects, it would be easier as MNMesh.

do you make new object using as a target another geometry object (in your case polyobject)?
(for example, ‘multiple clone a specified object as one new mesh’)

Pretty much

Edit: its trying to keep the new data within the Object. As SimpleObject2 uses Mesh, I’ve been using that so far, but MNMesh would be alot more helpful xD

ok…

that’s a little different story, and it’s easier to make it works with mnmesh.

first of all you have to keep reference to object you want to ‘modify’ or extend. you can store it with your object paramblock

make a copy of polyobject every time you load plugin or get a notification that target object changed (you can do it every time you BuildMesh, but it will slow everything down). you have to update a target copy only when it’s necessary.

in BuildMesh do whatever you want working with mnmesh and out mnmesh to mesh

Ahhh ok, that makes sense. I’ll give it a go!! Thanks again