AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat Oct 25, 2014 9:22 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: point of interest plus
PostPosted: Thu Dec 06, 2007 7:02 am 
Offline

Joined: Thu Dec 06, 2007 6:23 am
Posts: 4
Hello,

trying to attach source point of shine to point of interest of camera, which i have manged to do using pickwick.

however i wanted to adjust the y value and have got stuck

this is the code

src=thisComp.layer("Camera").transform.position


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 06, 2007 3:35 pm 
Offline

Joined: Tue Sep 05, 2006 3:45 am
Posts: 62
Location: Chiswick, London, UK
Hi Harico,

In the code you already have, src is given a 3 element Array containing the X, Y and Z values of the Camera position.

What you want to do is take the X and Z from that and put your own Y in. So, construct a new 3 element Array, where the X and Z elements are picked from the existing Array like this:

Code:
src = new Array(thisComp.layer("Camera").transform.position.value[0], 50, thisComp.layer("Camera").transform.position.value[2]);


Where 50 is your own value for y. Could be another variable also...

Hope this gets you on the right track,

Chris


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 3:09 am 
Offline

Joined: Thu Dec 06, 2007 6:23 am
Posts: 4
thanks


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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