I have a simpleManipulator plugin that should display a mesh using this code:
plugin simpleManipulator HelperTest_DisplayMesh
name:"HelperTest"
classID:#(0x47db14fe, 0x4e9b5f90)
category:"Manipulators"
(
parameters pblock rollout:params
(
...
)
rollout params "HelperTest Parameters"
(
...
)
on canManipulate target return
(
off
)
on updateGizmos do(
this.clearGizmos()
this.addGizmoMesh (createInstance MyMesh()).mesh 0 (colorMan.getColor #manipulatorsSelected) (colorMan.getColor #manipulatorsActive)
)
tool create
(
on mousePoint click do
(
nodeTM.translation = gridPoint;#stop
)
)
)
MyMesh is some mesh that could be defined in another plugin. How can I set the position of MyMesh relative to the position of the simpleManipulator node?
