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
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Scale Drawing according to distance

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 316 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 22/06/2013 at 05:36, xxxxxxxx wrote:

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

      ---------
      I want to reproduce the behavior of the move axis that appears always the same size in the

      viewport. I draw a matrix into the viewport using DrawLine() three times:

      Is there a float value I can multiply the length of those lines with so they appear always the same
      size on the screen?

      Thanks,
      -Niklas

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

        On 22/06/2013 at 06:00, xxxxxxxx wrote:

        I ran into the same problem in python some time ago and i solved it by using the baseview w/h 
        ratio and size as a reference. However the c4d axis gizmo scaling is more complex than it might 
        appear at the first glance. It does relate to the BaseView frame ratio and also introduces some 
        sort of capping so that extreme width/height ratios are filtered.

        ps: the 'convert unit in space xyz to 1 px' methods  in baseview can be handy for that task.

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

          On 23/06/2013 at 02:59, xxxxxxxx wrote:

          Thanks for your answer. I'll play with this and report back. 🙂

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