Activity › Forums › Adobe After Effects Expressions › Strange Issue with Expression Control Effects and Precomp
-
Strange Issue with Expression Control Effects and Precomp
Marcel Izumi replied 7 years, 10 months ago 12 Members · 21 Replies
-
Dan Ebberts
April 15, 2012 at 6:08 pmThis can happen if your precomp layer starts at some time other than zero in the main comp. You may need to add an offset equal to the start time of the precomp layer, like this:
offset = comp(“main comp”).layer(thisComp.name).startTime;
comp(“main comp”).layer(“controls”).effect(“Angle Control”)(“Angle”).valueAtTime(time + offset);Dan
-
Jeffrey Lejune
April 15, 2012 at 6:15 pmThanks for taking the time to address this Dan. I will give it a try and let you know.
-
Thanassis Pozanztis
May 16, 2012 at 10:48 amThanks Dan,
your solution did indeed solve the problem.Thank you so much!
T -
Grim Roper
September 18, 2012 at 12:34 amHi
I’m having a similar issue:
I have a main composition containing my control layer and a pre-comp which is Time Remapped. This pre-comp contains 4 more pre-comps that are sequenced (which each contain a different version of the object that I want to animate. I have a slider in the main comp which controls which version is in view).
I have sliders in the main comp controlling the properties I want to animate (these properties are “two comps deep,” if you will), and they all work perfectly until I try to set a keyframe.
I’m guessing the problem has something to do with the Time Remapped precomp that is “in-between” the controllers and the object, and I’m wondering if there is any way to make it work.
Any help or suggestions would be appreciated,
Regards
-
Alex Ramirez
February 22, 2013 at 1:25 amHey I was having the same problem but i think i found some kind of solution for me.
The thing is that I was using my expression in a 4 frame long comp with time remap then my main comp was 3 min long and it was also in time remap I remove this time remap and make every comp 4 min long.If any one needs a more detail explanation pls contact me or reply something in here.
thx
-
Scott Bush
February 22, 2013 at 2:47 amI love that this thread comes to life every couple months or so (or years sometimes). And that Dan Ebberts helped out! A few of the tips in here come in handy to this day so thanks all for helping!
-
James Lashmar
March 6, 2014 at 1:42 pmThis can happen if your precomp layer starts at some time other than zero in the main comp. You may need to add an offset equal to the start time of the precomp layer, like this:
offset = comp(“main comp”).layer(thisComp.name).startTime;
comp(“main comp”).layer(“controls”).effect(“Angle Control”)(“Angle”).valueAtTime(time + offset);Dan
++++++++++
This solved my problem but then I ran into another in reverse but can’t figure it out…
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?
-
James Lashmar
March 12, 2014 at 11:41 amHere’s a sample of what i’m trying to achieve. Ae is CS6.
I would just like to apply the shape layers position to the corresponding nulls in the master comp.
https://www.mediafire.com/download/1fox5vex3jz2fyz/preComp_layerPos.aep
-
Kris Hernandez
July 14, 2016 at 11:16 pmHey!
Having the same exact issue, but I have a rookie question here!…where do I plug in the time code?
offset = comp(“main comp”).layer(thisComp.name).startTime;
comp(“main comp”).layer(“controls”).effect(“Angle Control”)(“Angle”).valueAtTime(time + offset);Thankful for any help that you might be able to give,
Kris
-
Dan Ebberts
July 15, 2016 at 1:21 amYou would use it for the expression in the precomp that refers to the angle control in the main comp.
Dan
Reply to this Discussion! Login or Sign Up