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
    • Register
    • Login

    Round off scale/size, rotation and position values in multiple objects in Cinema 4D.

    General Talk
    2024 python windows
    3
    9
    1.5k
    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.
    • B
      bjorncogxgoc
      last edited by

      I'm new to Cinema 4D and I need help.
      I use Cinema 4D 2024.
      I need to automatically round the scale/size, rotation and position of the selected objects.
      I have this need because I work with product design.
      Rhino has a similar resource, but I need this feature in Cinema 4D 2024.
      Using a script would be great, but I don't know how to develop scripts or Python.
      It can be script, plugin or tool.

      Any help is welcome.
      Currently I do these modifications manually, one object at a time. 😩
      But it is very difficult in projects with hundreds of geometries.
      So I need to round the scale, rotation and automatically position 3D models imported to Cinema 4D.

      Example:
      Selected geometry in Cinema 4D 2024

      Coordinates:
      X: 24.8033cm
      Y: 22.2041cm
      Z: 21.2099cm

      Rotation:
      X: 0.45°
      Y: 0.11°
      Z: 0.24°

      The result I need:
      Coordinates:
      X: 25cm
      Y: 22cm
      Z: 22cm

      Rotation:
      X: 0°
      Y: 0°
      Z: 0°

      I need this feature to work individually on each of the multiple selection objects.

      Thanks

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

        I guess a Python script would do it fine, but I don't use Python. I can write you a quick plugin if that's any use? A plugin would give a few more options than a script I think.

        Steve

        1 Reply Last reply Reply Quote 2
        • B
          bjorncogxgoc
          last edited by bjorncogxgoc

          Hi Steve

          Every help is welcome.
          Plugin would help me a lot.

          A few months ago I needed a similar feature in Rhino 3D.
          The community helped me with a script/plugin in Rhino that worked well.
          I will share the topic link. Maybe it will help in some way with the development of the plugin. Although Rhino and Cinema 4D are different, the 3D concept has similarities.

          Thanks for helping me.

          Bjørn

          https://discourse.mcneel.com/t/round-off-scale-size-and-position-values-in-multiple-objects/155089/7

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

            No problem, give me a couple of days to get an initial test version working. Are you on PC or Mac?

            Steve

            B 1 Reply Last reply Reply Quote 1
            • B
              bjorncogxgoc @spedler
              last edited by bjorncogxgoc

              @spedler Thank you so mutch. PC and MAC. 🥹
              Cinema 4D 2024

              ferdinandF 1 Reply Last reply Reply Quote 0
              • ferdinandF ferdinand moved this topic from Cinema 4D SDK on
              • ferdinandF
                ferdinand @bjorncogxgoc
                last edited by

                Hello @bjorncogxgoc,

                Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us!

                Getting Started

                Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are:

                • Support Procedures: Scope of Support: Lines out the things we will do and what we will not do.
                • Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon.
                • Forum Structure and Features: Lines out how the forum works.
                • Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner.

                About your First Question

                Thank you for reaching out to us. Please note that request for plugins should be posted in General Talk. And thanks at @spedler for kindly offering help. The SDK group cannot provide solutions on demand, as declared in our support guidlines.

                Cheers,
                Ferdinand

                MAXON SDK Specialist
                developers.maxon.net

                1 Reply Last reply Reply Quote 0
                • B
                  bjorncogxgoc
                  last edited by

                  Hi @ferdinand
                  I apologize for the inconvenience.
                  I promise to be more attentive to the forum rules.
                  Thanks.

                  ferdinandF 1 Reply Last reply Reply Quote 0
                  • ferdinandF
                    ferdinand @bjorncogxgoc
                    last edited by

                    Hello @bjorncogxgoc,

                    It was no inconvenience at all. You couldn't know since you did just join, which is why I pointed it out 🙂

                    Cheers,
                    Ferdinand

                    MAXON SDK Specialist
                    developers.maxon.net

                    1 Reply Last reply Reply Quote 1
                    • S
                      spedler
                      last edited by

                      Hi Bjorn,

                      I have a working version of this now which you can download from my site at https://microbion.co.uk/files/rounditr2024.zip

                      It's PC-only at the moment and requires C4D R2024. Try this and see if it does what you need. There's some basic documentation included which I'll tidy up for the final version.

                      There doesn't seem to be a DM facility here so we'd better take any further discussion to email. You can get hold of through the contact page on my site (link is in the PDF in the zip file). Do let me know what you think.

                      Cheers,
                      Steve

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