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
    • Login

    Strange behave of BaseDraw

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 263 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 28/07/2008 at 07:03, xxxxxxxx wrote:

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

      ---------
      Hi!

      I wanted to draw an HANDLE-dot (HANDLE_3D) in the current viewport.

      Bool Calculate(GvNode *bn, GvPort *port, GvRun *run, GvCalc *calc)
      {
         BaseDraw* t = bn->GetDocument()->GetActiveBaseDraw();
         t->Handle3D(Vector(70), HANDLE_BIG);
         [...]
      }

      That's the result:

      I have to use it in Calculate and not in SceneDraw..

      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 28/07/2008 at 08:14, xxxxxxxx wrote:

        Must be done in SceneDraw(). This is the place where C4D draws into the viewport - any other place doesn't get to the viewport because it is not being done at the viewport draw stage encapsulated by SceneDraw() (or any similar method).

        So, you'll need to store whatever information goes into the draw calculated in Calculate() and use it in SceneDraw() (which is called quite often). Then the draw will be in the proper place in the pipeline.

        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 28/07/2008 at 08:25, xxxxxxxx wrote:

          Hi!

          Thanks 🙂 Okay, I check out, how I'll do it.

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