THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/03/2004 at 15:56, xxxxxxxx wrote:
Cinema 4D Version: 8.206
Language(s) : C++ ;
Is it possible to draw into the editor window, have handles and to be able to click the handles to modify the active object while using a dialog type plugin?
Currently I am using GetActiveBaseDraw(), but It is producing wierd effects. Im trying to draw a circle around the active object
BaseObject *op = doc->GetActiveObject();
Matrix m = op->GetMg();
mCircle.off = op->GetPos();
mCircle.v1 = m.v1 * 100;
mCircle.v2 = m.v2 * 100;
But the circle is drawing in a complete different place, and moves around incorrectly when im moving/rotating the viewport. The code worked fine when I created a ObjectData plugin which has got me confused.
Using the GetActiveBaseDraw() I can draw my handles, but how can I detect when the mouse has clicked and moved one? Is it possible?
I sort of need a mix between a ObjectData and a ToolData plugin but I need to be able to click objects in the editor and the editor to update with the contents of a BaseDraw function.
I thought I could do what im after using a ToolData plugin but, when the plugin is active, Its not possible to select an object using the editor is it?
And an ObjectData plugin is not ideal because that inserts an object into the scene.
Thanks for reading