Jump to content
Sign in to follow this  
iamneuron

Accessing a layers position data that is nested in a time remapped precomp

Recommended Posts

Hi guys,

 

So i have a shape layer with an animated position copied and pasted from a path. This is preComped and looped forever. This preComp is also preComped again within a master comp.

I want to take the position of the original shape layer and apply it to a null (that is in the master) so that is at the current position that the shape layer is at the current time within the master comp.

How can i do this please?

 

N.B. This isn't as simple as just pickwhipping the layers position because of the time remap/ layer starting at a time other than zero in the main comp, there needs to be an offset.

 

I found something that is pretty much the reverse of what i need from Dan Ebberts on the Cow for doing something similar but linking to a slider but can't figure out how to reverse it for this purpose.

offset = comp("main comp").layer(thisComp.name).startTime;
comp("main comp").layer("controls").effect("Angle Control")("Angle").valueAtTime(time + offset);

 

Share this post


Link to post
Share on other sites

Sorry, this is vaguer than vague. We simply don't know what it looks like. If you animate the pre-comped item again in the other comp there could be any number of additional layer space transforms be required. The looping would simply be done using a modulo where the divider matches the time-remap cycle's length, but really, the rest is far too inconclusive.

 

Mylenium

Share this post


Link to post
Share on other sites

Ok here's a sample project file. So i simply want the nulls in the master comp to have the precomposed shape layers position dynamically via an expression. I'm not adding any additional transforms to the nulls. Hopefully having the project will make more sense. Thanks :)

 

 

http://www.mediafire.com/download/1fox5vex3jz2fyz/preComp_layerPos.aep

 

Edit : After Effects Version CS6. let me know if you need it in anything else.

Edited by iamneuron

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...