SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE AFTER EFFECTS:
Home
Forum
Basics
Expressions
Tutorials
Podcasts
Motion Graphics
Training
Cinema 4D
FAQ
Re: Z Position Optical Illusion HELP!
Cow Forums
:
Adobe After Effects Expressions
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
Re: Z Position Optical Illusion HELP!
by
Dan Ebberts
on Nov 3, 2009 at 10:43:39 pm
Here's something I posted before that might be useful. I think it's kind of the opposite of what you're doing (it starts with the pieces looking co-planar) but it should give you an idea of the calculations involved:
Start out with all your pieces at z = 0 and your camera on the z axis. Add a slider to each piece you want to reposition. Set each slider to 100. Add this position expression to each piece (changing "cameraZ" to the starting z position of your camera):
cameraZ = -888.9;
zControl = effect("Slider Control")("Slider");
cameraPos = [thisComp.width/2,thisComp.height/2,cameraZ];
(value - cameraPos)*zControl/100 + cameraPos
Add this expression to the scale:
zControl = effect("Slider Control")("Slider");
value*zControl/100
Reposition the pieces by adjusting the sliders. Slider values of less than 100 will move the pieces towards the initial camera position - values of greater than 100 will move them away. After adjusting the sliders, the image should still appear the same until you start moving the camera.
Dan
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
Z Position Optical Illusion HELP!
by alberto garcia on Oct 30, 2009 at 5:26:38 pm
Re: Z Position Optical Illusion HELP!
by Dan Ebberts on Oct 30, 2009 at 9:44:47 pm
Re: Z Position Optical Illusion HELP!
by alberto garcia on Nov 3, 2009 at 10:25:33 pm
Re: Z Position Optical Illusion HELP!
by Dan Ebberts on Nov 3, 2009 at 10:43:39 pm
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key.
Read more...
Please post Expressions Code in the box below:
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]