How to get the document scale?



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



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

    Hi,

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


Log in to reply