AE ENHANCERS

Expressions/Scripts/Presets
It is currently Thu Sep 02, 2010 3:48 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: creating "rigged camera" via scripts
PostPosted: Thu Nov 17, 2005 3:36 pm 
Offline

Joined: Thu Nov 17, 2005 11:50 am
Posts: 3
Hi there,

Trying to write a script which creates a new Camera, a null with slider and angle expression controls, and then expressions on the camera's position and rotation properties which are referencing the slider controls on the null.

I've gotten this to work manually following other posts elsewhere on this forum - and here's what i do:

First I create a null object and call it "MOVER". to that i add 3 slider controls, called Pos X, Pos Y, and Pos Z. then i create 3 angle controls called Rot X, Rot Y, and Rot Z.

After that I create a camera and put this expression on its position:

w = thisComp.width/2;
h = thisComp.height/2;
d= (-900);
x = thisComp.layer("MOVER").effect("Pos X")("Slider")+w;
y = thisComp.layer("MOVER").effect("Pos Y")("Slider")+h;
z = thisComp.layer("MOVER").effect("Pos Z")("Slider")+d;
[x, y, z];

and on the orientation goes:

x = thisComp.layer("MOVER").effect("Rot X")("Angle");
y = thisComp.layer("MOVER").effect("Rot Y")("Angle");
z = thisComp.layer("MOVER").effect("Rot Z")("Angle");
[x, y, z];

Anyone know how I could script this?
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 10:44 am 
Offline

Joined: Tue Mar 14, 2006 2:16 pm
Posts: 98
Location: Atlanta, GA
I'm not sure if Kyle is still checking for this script, but I went ahead and gave this one a shot. I posted the results here...
http://www.creative-workflow-hacks.com/2006/07/13/script-to-automate-rigging-a-camera-in-after-effects/

Hope it's still useful.

_________________
Dale Bradshaw
Technology Director | Primal Screen
creative-workflow-hacks.com
Atlanta, GA


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group