Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Using BaseDraw from dialog

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 197 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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:

      User Information:
      Cinema 4D Version:   9.1 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi,

      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
      Thanks

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post