Round off scale/size, rotation and position values in multiple objects in Cinema 4D.
-
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 2024Coordinates:
X: 24.8033cm
Y: 22.2041cm
Z: 21.2099cmRotation:
X: 0.45°
Y: 0.11°
Z: 0.24°The result I need:
Coordinates:
X: 25cm
Y: 22cm
Z: 22cmRotation:
X: 0°
Y: 0°
Z: 0°I need this feature to work individually on each of the multiple selection objects.
Thanks
-
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
-
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
-
No problem, give me a couple of days to get an initial test version working. Are you on PC or Mac?
Steve
-
@spedler Thank you so mutch. PC and MAC. 🥹
Cinema 4D 2024 -
-
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 -
Hi @ferdinand
I apologize for the inconvenience.
I promise to be more attentive to the forum rules.
Thanks. -
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 -
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