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

Re: on / off checkbox for linking

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: on / off checkbox for linking
by Trent Armstrong on Oct 27, 2008 at 9:43:02 pm

unlimit = [2000, -1000]; // Using this to give clamp some freedom

null1 = thisComp.layer("Null 1").transform.position + value; // The value in here is 0, 270
ground = [207, 630]; // This is the left/right and up/down barrier

clamp(null1, unlimit, ground)


You might try using a clamp() expression.

You could read the position (and other attributes) of the Null into your leg layers instead of parenting them.

Then give them limits.

I built a sample comp with a Null 1 and a solid. You'll need to adjust your settings, but it should be fairly obvious what the constraints need to be.

Trent Armstrong - Creative Cow Leader
http://www.dallasaeug.com


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


Current Message Thread:
  • on / off checkbox for linking by Heli Ellis on Oct 24, 2008 at 7:49:10 am
    • Re: on / off checkbox for linking by Trent Armstrong on Oct 27, 2008 at 9:43:02 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.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]