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();
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
On 21/04/2005 at 13:27, xxxxxxxx wrote:
I think the best way is to make a custom SceneHookData that you can use to draw into the editor. SceneHookData::Draw() will be called every redraw. Make sure that it doesn't hog any resources when your dialog isn't open!