PDA

View Full Version : Question / Plea: Quick-90-Rotate script?


Newstream
02-07-2008, 11:40 AM
Dear Gurus,

Is there a script that allows 90 degrees (H) rotation to be added to the rotation of a selected object? The reason I ask is that during the course of a typical project, I repeatedly find myself rotating an object typically 90, 180 or 270 degrees from its original rotation by typing in the corresponding (H) values in the coordinate manager which is perfectly ok, albeit slow and ineffective from a workflow standpoint. However, this becomes tedious if you find yourself repeating this mundane task several hundred times a day.

Now, if there were a simple script to which one could assign a button or keyboard shortcut, to rotate a selected object say 180 degrees clockwise by simply tapping the keyboard shortcut twice *click-click* - *boom* done, it would shave hours off my workflow.


Cheers / Alex

Srek
02-07-2008, 11:44 AM
You do know that you can simply enter +90 after the current value to add 90°?
If you need this done for several objects just multiselect them and replace the <multiple values> text with x+90°. It will increase all individual rotation values by 90°
Cheers
Björn

Newstream
02-07-2008, 11:54 AM
You do know that you can simply enter +90 after the current value to add 90°?
If you need this done for several objects just multiselect them and replace the <multiple values> text with x+90°. It will increase all individual rotation values by 90°
Cheers
Björn

Hi Björn,

Thanks for your response.

Yes, I'm aware of this, in fact I usually have "+90" copied into memory and paste it directly after the current H-rotation and hit enter. Its works ok, but I feel the need to work more efficiently than this by tweaking / customizing the workflow.

Cheers / Alex

Per-Anders
02-07-2008, 06:54 PM
Just make one yourself it's not hard to do. Create a new script, type "op" in the script manager (the current object) then drag & drop any parameter you want to edit on the object, e.g. it's rotation from the AM into the script manager so it reads op#SOMEPARAMETER then just do += pi/2 (angles are in radians in cinema) and add a semicolon to finish the line, this will increment the value by half of pi. save script.

Newstream
02-07-2008, 11:00 PM
Just make one yourself it's not hard to do. Create a new script, type "op" in the script manager (the current object) then drag & drop any parameter you want to edit on the object, e.g. it's rotation from the AM into the script manager so it reads op#SOMEPARAMETER then just do += pi/2 (angles are in radians in cinema) and add a semicolon to finish the line, this will increment the value by half of pi. save script.

It sounds easy.
I must try this tomorrow morning.
To be continued........

Cheers / Alex

Newstream
02-08-2008, 11:41 PM
Hmmm... (eye opener)
It really isn't that complicated.
Thanks for the input Per. :thumbsup:

Anyway, Here's the Quick90 script with an icon.


Cheers / Alex

govinda
02-09-2008, 07:22 AM
Good quick thing. Here it is with some new brothers in a layout near the Coord Manager. Ten-second icons are here (http://www.planetsandvegetables.com/cgtalk/Quick90_icons.zip). (Edit, didn't see your icon badtastic, sorry! No crit intended, and in fact mine are just whatever font I'd last used combined whatever color I last used [stencil, red]).

Newstream
02-09-2008, 11:03 AM
Good quick thing. Here it is with some new brothers in a layout near the Coord Manager. Ten-second icons are here (http://www.planetsandvegetables.com/cgtalk/Quick90_icons.zip). (Edit, didn't see your icon badtastic, sorry! No crit intended, and in fact mine are just whatever font I'd last used combined whatever color I last used [stencil, red]).

Hey, These are great! :thumbsup: As a collection their appearance is logical, consistent and easy to recognize at a glance. Great work govinda! No harm done, on the contrary, the more the merrier :bounce: Complementing these with an easy-to-remember customized keyboard shortcut (for example Ctrl-Alt- X , Y or Z) makes these very handy indeed.

Cheers / Alex

soccerrprp
02-09-2008, 11:50 AM
Sorry, answered own question.

Richard

CGTalk Moderation
02-09-2008, 11:50 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.