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

    Draw virtual line in viewport [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    7 Posts 0 Posters 597 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

      On 20/06/2015 at 11:59, xxxxxxxx wrote:

      Hi guys.

      Sorry for dumb explanation, but I don't know how to explain what I want:)

      I want to have a "virtual line" (or "wireframe line") that would connect Camera + Cube + Sphere.
      That virtual line would not be renderable, its just displayed on viewport, same as Camera object is "drawn". In other word - a doodle line. I've no idea what to call it:)

      Any ideas where I should be looking at for this scenario?

      Thanks in advance.

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

        On 20/06/2015 at 18:20, xxxxxxxx wrote:

        You can do it in an ObjectData or TagData's Draw() method.

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

          On 23/06/2015 at 13:41, xxxxxxxx wrote:

          If it's not too much to ask, maybe you know of any references/examples for this kind of stuff?

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

            On 24/06/2015 at 12:15, xxxxxxxx wrote:

            I have an example on my website. I think I called it smooth spline or something like that.
            It doesn't just draw a line. It draws a cubic spline.

            You'll need to watch out for the Z-depth drawing bug that makes things drawn to the screen not render correctly.
            It's a long time bug that Maxon insists isn't a bug...But I insist that it is. Tongue

            -The Ghost

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

              On 24/06/2015 at 12:24, xxxxxxxx wrote:

              Hi Scott, thanks.

              I checked your user profile but was unable to find you website:)

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

                On 24/06/2015 at 12:29, xxxxxxxx wrote:

                https://sites.google.com/site/scottayersmedia/plugins

                I'm posting from my local library. I'm still having trouble finding low cost internet service in my area.
                So I won't be able to answer any questions about them.

                -The Ghost

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

                  On 29/06/2015 at 02:28, xxxxxxxx wrote:

                  Hello,

                  actually there are a few examples on Draw() in the Python SDK. For example:

                  • DoubleCircle
                  • RoundedTube
                  • LiquidTool

                  best wishes,
                  Sebastian

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