Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Re: Linking Camera to Fractal Noise

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: Linking Camera to Fractal Noise
by Darby Edelen on Aug 25, 2008 at 6:29:41 pm

So I posted this to the Media Motion list, but I wanted to make sure that it went up here as well. The way I usually link fractal noise with the camera is by using a 3D null as a reference point for the offset turbluence, scale and rotation of the fractal noise. Those expressions are below. "Target" is the 3D Null layer.

For Offset Turbulence:

l = thisComp.layer("Target");
fromComp(l.toComp(l.anchorPoint));

For Scale:

c = thisComp.activeCamera;
l = thisComp.layer("Target");
pc = c.toWorld([0,0,0]);
pl = l.toWorld(l.anchorPoint);
value * c.cameraOption.zoom / length(pl, pc);

For Rotation:

l = thisComp.layer("Target");
v = l.toCompVec([1,0,0]);
radiansToDegrees(Math.atan2(v[1], v[0]));


Darby Edelen

NVIDIA
Santa Clara, CA


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




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.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]