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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    How to get the document scale?

    SDK Help
    0
    2
    219
    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
      Helper
      last edited by

      On 06/01/2014 at 22:20, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   13,14,15 
      Platform:      
      Language(s) :

      ---------
      I wonder how I can get the scale of a document. If I have two documents, and insert a cube primitive, in one document the cube will be small, because this doc has a large scale. In the other document, the cube becomes large, obviously because this doc operates with a different scale.

      In my plugin I insert an object. And do other stuff. It is important for me to write code catering for various doc scales. Obviously C4D knows this when I insert primitives. But how can my plugin get this kind of data? I cannet find any method in BaseDocument which deals with this.

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

        On 06/01/2014 at 22:53, xxxxxxxx wrote:

        Hi,

        The document scale information is contained in DOCUMENTSETTINGS_DOCUMENT -> DOCUMENT_DOCUNIT.

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