I am trying to create a pluggin the instance of which can appear as a mesh in your scene. So when you click on the mesh I have special pluggin options. The main option I want is to be able to switch the mesh to one of a number of different objects (for examples switching between types of bushes). So if one clicks on the mesh there is a drop down list, you can select a different bush, and the mesh changes to that bush.
I thought to do this by using the mesh variable in the simpleobject plug in, and then merge in objects, grab the mesh and apply it to the mesh variable of simpleobject plugin instance, thus changing the mesh.
However in the help it says not to create scene nodes through the simple object pluggin, there is also the problem of having a create tool, which I dont want since the plug in instance is generated from a script, and not by the user. (Also I would like to be able to add modifiers, which it also warns against..)
A work around would be to have a helper plugin that merges in an object moves it to the helpers location (transform) and then acts as a parent, so if you move the helper plugin instance then the mesh moves with it, you can then simply change the mesh with new merging options on the helper plugin. The trouble with this is that there are 2 objects, which can be confusing for the user, since the helper plugin and the mesh will be separate objects with their own options. With the simpleobject plugin the whole thing is wrapped up nicely in one mesh that can then be switched..... although there are all the other associated problems listed above.
Bottom line is can I use something like the mesh variable, but in a form where I can switch things as described above. If there are any completely different alternatives, then please fill me in. I am all ears and this is turning into a real hassle!!
Thanks for your time everyone :)