Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Modeling Toolkit From c++ Api

Modeling Toolkit From c++ Api

Anonymous
Not applicable
456 Views
0 Replies
Message 1 of 1

Modeling Toolkit From c++ Api

Anonymous
Not applicable

Hi there,

 

i'm writing a custom shape plugin which is intended to be made live and then used in the Modeling Toolkit (i.e.: quad draw with snaps).

I've overridden MPxSurfaceShape's canMakeLive() and both closestPoint() functions, so the quad draw works smoothly.

The problem is when the user then try to move (or tweak) components he has just drawn (using quad draw). 

I expected closestPoint() would still be called even in this case, but nothing happens and the components are immediately moved to the world origin while still pressing the mouse during the tweak interaction.

Mel echoes nothing: i still discovered by trial and error that when i undo the movement of a component, mel output echoes:

\\ undo: mtkTweak \\

Still, documentation has no record of it, neither the mel help command is useful, since it cannot find any command named mtkTweak.

 

The question is:

 

what callback/class should i override in order to properly move components drawn on a live surface? 

Thank You all for any help

 

0 Likes
457 Views
0 Replies
Replies (0)