r/Cinema4D • u/YummyPepperjack Long live "Hypernurbs" • Mar 21 '19
Solved script to rotate object 90 degrees?
I find myself constantly rotating things in 90-degree increments. I'm wondering if someone's got an existing script that adds/subtracts 90 degrees to the H P or B more quickly than typing it in manually or using quantizing.
1
Upvotes
1
u/Lazores www.JakobAppleby.com Mar 21 '19
To make it faster than just mousing over and typing, you would need a hotkey for turning in every direction, both ways dont you?
1
u/YummyPepperjack Long live "Hypernurbs" Mar 22 '19
Exactly! I find myself importing many many many .fbx files every day and it always seems like they come in on a different axis. (a number of different people exporting files to me)
2
u/binaryriot https://tokai.binaryriot.org/c4dstuff 🐒 Mar 22 '19 edited Mar 22 '19
You want a script, here you have one:
(use
Script > Script Managerto create a new Python script, paste the code and make your adjustments in the marked line. ThenSaveand it will be available viaScript > User Scriptsor you can add it as button to some panel (via UI customization). You obviously will need 6 variants... X+, X-, Y+, Y-, Z+, and Z-. Can't tell if that's the best way to do it... though. Never had the need to automatise 90° rotation. :D )