THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2005 at 12:10, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Language(s) : C++ ;
I have created a dialog plugin that creates objects into the document.
The dialog creates the objects after I click a button.
I would like to add some kind of preview function so I can see where the objects will be placed, by drawing markers into the editor view.
As the GeDialog doesn't have access to the editors BaseDraw I used the following code
BaseDocument *doc = GetActiveDocument(); BaseDraw *bd = doc->GetActiveBaseDraw(); bd->Circle2D(100,100, 100);
But nothing shows in the editor windows. Perhaps C4D is refreshing thus removing what I am trying to draw. Im not sure.
I have never used GetActiveBaseDraw before, so I'm wondering If I am doing this correctly.
Any help would be apreciated