Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Re: link to position in parent composition

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Return to Posts Index   •   Read Entire Thread   •   Reply To This Post


Re: link to position in parent composition
by Trent Armstrong (pxlguy) on Jan 24, 2008 at 7:43:17 pm

Cheers!

I think there are three ways to approach this. First, if it doesn't destroy your project, you could make the two comps the same size.

Second, you could use sliders to take care of the offset. Add an X, a Y, and a Z expression slider to the "parent" layer in the final comp and pickwhip the expression in the position of your layer in the child comp.

Something like:
-----------------------------
xOffset = {pickwhip to X offset slider};
yOffset = {pickwhip to Y offset slider};
zOffset = {pickwhip to Z offset slider};

x = value[0] + xOffset;
y = value[1] + yOffset;
z = value[2] + zOffset;

[x, y, z]
-----------------------------
This would allow you to correct the position in the parent comp and hopefully would only be one-time tweaks instead of lots of animating.

THIRD, (Dan Ebberts would know better than me) but you might be able to use fromWorld(toWorld())

He has a good example at motionscript.com. I'm just changing "Comp" to "World" since "World is what you use when you are using a camera:
http://www.motionscript.com/design-guide/threeD-corner-pin.html

target = thisComp.layer({pickwhip this to your parent layer});
fromWorld(target.toWorld(target.anchorPoint));

A fourth option might be to make your child comp into a 3D and rasterized layer in the parent comp. (TRY THIS ONE FIRST!)

Good Luck!
Trent

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


Return to Posts Index   •   Read Entire Thread   •   Reply To This Post


Current Message Thread:




Note: If you are a registered user and you do not see your name and email in the two respective fields above, you may reset your account cookies by clicking here. Your post will not be accepted if the name and email provided above are not currently registered in our database.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  


Message                Add Bold Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Italic Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Underline Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Image Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd URL Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this button

Note: The following characters are HTML command 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. For more on how to post, click here.


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.



FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]