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

    UNIT METER SCALE ISSUE

    Cinema 4D SDK
    3
    4
    667
    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.
    • P
      pyr
      last edited by

      According to the documentation, my user data should be scaled when you provide them with the flags UNIT METER. Unfortunately, this does not work as hoped. Scaling using ObjectMode is running.

                  REAL GRIDDER_WIDTH  { UNIT METER; MIN 0;}
                  REAL GRIDDER_HEIGHT { UNIT METER; MIN 0;}
      
      
      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by

        Hi,

        I am a bit confused, you are talking about user data, but you show a description resource, so I assume you are actually in a plugin environment? The scaling is working just fine for me, it might be helpful if you would provide more information regarding your code and when possible examples. The only thing I could think of out of the blue: Have you initialized your attributes properly via NodeData.InitAttr()? If not all kinds of weird stuff will happen.

        Cheers
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • P
          pyr
          last edited by

          @zipit said in UNIT METER SCALE ISSUE:

          NodeData.InitAttr()

          ❤

          1 Reply Last reply Reply Quote 0
          • r_giganteR
            r_gigante
            last edited by

            Hi pyr, thanks for reaching out us.

            Consider that the Scale modifier operates on the transformation matrix of the object when in Object Mode, whilst it operates on the parameters specified as lengths when in Model Mode.
            Finally, as pointed out by @zipit, providing more context will be definitively beneficial since with a very simple example I'm not able to replicate the issue as well.

            Best, R

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