Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Scaling Vector attributes

    Cinema 4D SDK
    c++
    2
    4
    966
    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.
    • rsodreR
      rsodre
      last edited by rsodre

      Hi!

      Using UNIT METER in a REAL attribute in resource files links it the scale tool, scaling automatically when we use it. Adding UNIT METER to a VECTOR works the same way, but it does not respect each individual axis. Scaling only the X, Y or Z axis will scale every component of Vector, not only the axis I'm scaling. How can I apply only the actual scaling axis to the vector?

      Thanks,
      Roger

      1 Reply Last reply Reply Quote 0
      • a_blockA
        a_block
        last edited by a_block

        Hi Roger,

        it's always me, who has to bring bad news to you...
        Unfortunately this is not possible, the Scale Tool always scales the entire Vector. As evidence you can for example look at our standard Cube and how it reacts to the Scale tool.

        Edit: I have changed the thread into a question.

        Sorry,
        Andreas

        1 Reply Last reply Reply Quote 2
        • rsodreR
          rsodre
          last edited by

          Hi Andreas,

          So it's basically impossible to use each scale axis independently in a custom object?
          Is there any other way to get the scaling axis other than using UNIT METER in an argument?

          Roger

          1 Reply Last reply Reply Quote 0
          • a_blockA
            a_block
            last edited by

            Hi Roger,

            with respect to the Scale tool, yes, it is impossible to have individual parameters of a custom object scaled non-uniformly.
            Of course (but I'm sure you are aware, just mentioning for completeness here) such parameters can be scaled non-uniformly via the Attribute manager. Also you could implement handles for such, so the user can access these via the viewport. And the last option could be to implement your own scale tool.

            I'm sorry, I know, none of these options is very convenient, but unfortunately I have nothing better to offer.

            Cheers,
            Andreas

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