Activity › Forums › Adobe After Effects Expressions › convert a 3d layer’s orientation to rotation
-
convert a 3d layer’s orientation to rotation
Wilson Tai replied 4 years, 7 months ago 9 Members · 18 Replies
-
Ste Kerouac
June 26, 2009 at 5:00 pmNathan, your launchpad looks really nice. Fancy sharing those png’s? And thanks Dan for the expressions…
-
Nathan Clark
July 5, 2009 at 2:33 pmHey,
Thanks for you kind words!
I’ve just posted my launchpad icons + corresponding scripts.
Cheers,
–Nathan
On Point Cloud Nine
-
Bart Popenoe
October 16, 2010 at 7:23 amHere’s a question. I’m looking to modify this script to convert orientation keyframes to rotational keyframes for an entire layer. I’ve got a comp with a baked camera, 3000 keyframes!
-Bart
-
Johnnie Travis
August 3, 2011 at 4:09 pmDan, I am very “green” when it comes to scripting and have a quick question regarding this script: I want to convert a camera’s orientation data to rotation data, so, would I apply this script to the camera’s rotation data? Any help you could give me would be greatly appreciated. Thanks Dan!
MAC PRO 3.2GHz Quad-Core
16GB RAM
CALDIGIT S2VRHD
AJA KONA LHe
FCP 7.0.2
OSX 10.6.4 -
Dan Ebberts
August 3, 2011 at 4:39 pmNo, you would save it as a .jsx file, select your layer and then File > Scripts > Run Script File… (and navigate to the script file).
Dan
-
Angie Taylor
December 11, 2014 at 7:44 amHi there,
I wanted to smooth some Orientation keyframes.
I couldn’t get Dan’s script working on mine for the same reason – baked keyframes from the 3D Camera Tracker. I’m no good with scripts (dyslexia makes it impossible – eel that’s my excuse!) but I figured out an analogue method for converting them in AE CC.
Export the comp to Cinema 4D – File > Export Cinema 4D.
Import the C4D file that you created into the AE project, drag it into your comp.
In Cineware, at the bottom in the Cineware Scene Data section, click on the Extract
This will extract the camera from the C4D file.As C4D does not have an Orientation property it uses Rotation for the animation.
Now you can use the smooth expression on the keyframes to smooth out what was originally Orientation keyframes.
This could be done with expressions or scripts but sometimes in the middle of a job I don’t have time to work it out so go for the quickest, dirtiest solution.
Hope this helps,
cheers,
Angie
Angie Taylor animation & illustration for television, film, web and devices
https://www.angietaylor.co.uk
Twitter: theangietaylor
Linkedin: theangietaylor
https://www.facebook.com/pages/Angie-Taylor/118378194869002 -
Arne Münch
July 22, 2015 at 11:30 amHi there
Did anyone could modify Dan´s script just that it works with keyframed orientation also.
The way with Cineware is nice but not what I am looking for.Thanks a lot..
EDIT: It seems that pickwicking the rotaion values, reset orientation and than apply expressions do the trick, but you still have the jumps (from 0|+1 to 0|+359) which makes it impossible to use smooth on the camera movement.
So it would be perfect to have a script transforming orientation to rotation and get rid of these jumps by converting 0|+359 to -1|+359?
Reply to this Discussion! Login or Sign Up