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

    Modifier parameters change uppon scaling

    Cinema 4D SDK
    r20 c++ windows macos
    2
    3
    424
    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.
    • N
      neon
      last edited by

      Hello,
      I noticed that two of my parameters of my modifier change their values when I scale the modifier in the viewport.
      I thought that it might be the Handles, but the only ones I have are from the Falloff/Field.
      I tried changing the ids of those two parameters (both Realslider) but they do still change.
      The only time I set/get the values for the parameters are in the Init function and in the ModifyObject function.

      I am at a complete loss here. Is there anything I could check that I may be doing?

      Thanks in advance!
      Best Regards,
      Florian

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by

        Hello,

        float parameters using "meter" as a unit are automatically scaled, when the object is scaled.

        You can disable this by setting DESC_FORBID_SCALING or "FORBID_SCALING" in the resource file.

        See Description Settings Manual.

        best wishes,
        Sebastian

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • N
          neon
          last edited by

          Hello Sebastian,
          thanks for this quick response!
          I dind't know about this. But this solved my issue!

          Best Regards,
          Florian

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