Time Remap Expression

hi there
I'm doing an Airport destination panel animation.
I've got a Composition called 'Flip' with Time Remap enabled.Here takes place the whole 'fliping' animation. This comp has got a Text Layer with an expression applied to it.This expression cycles through this line of code=>
letters = "1|2|3|4|5|6|7|8|9|0|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|-|.|/| ";
So every 5th frame the next Nr./letter appears.Example=> Nr1 appears completely at frame 5,Nr4 at frame 20 and so on.Animation is 4 frames long.
Now,it would be great to have Time Remap expressions that would do the following=>
let's say i want to write the word CLOSED=>6 letters
i now need 6 flip comps for this.Yes,i could now use Time remap keyframes to go to each letter of course.But in my project
i'd have to do it 400 times or more.
Is there any way to go to each letter>hold the letter for a specific time and switch to the next letter via expression?
//expression
Letter: A;// for example
SwitchToNext_letter; B;
Switch_time:.5 seconds
stop time;
any help appreciated
cheers

If one or more of your subcomps doesn't start at time zero as a layer in its parent comp, you have to compensate for that. It's tricky with multiple levels, but basically you end up with something like this:
a=comp("Diane - AE Rig").layer("Body_CTL").effect("Mouth_Control")("Slider")
framesToTime(a.valueAtTime(time + some_offset))
Dan

Similar Messages

  • Time Remap expression not working when targeting parent.parent comp.

    I created a character rig and I'm trying to set it up so most of the keyframing is done on the main comp instead of the sub comps. Most of the body is set up in the main comp except the head which is in its own sub comp. In this Head_Comp, i have two more sub comps, SideHead_Comp, and FrontHead_Comp. In both of these comp i have the head base, eyes, eyebrows, mouth, etc.   The mouth is in its own comp set to time remap from the head comps.
    Quick Breakdown:
    Body_Comp
              > Head Comp
                             >FrontHead_Comp
                             >SideHead_Comp
                                            >Mouth_Comp
    What I'm trying to do is be able to animate the mouth comp from the main body comp. I've done this with the eyes and eyebrows using dummy objects on the main comp, but when I try to "parent" the time remap of the mouth comp from each of the head comps to a slider in the body comp, nothing happens. The mouth comp will take the current position of the of the slider value and that's it, it won't change if I move the slider around. I'm doing it this way to avoid having a bunch of different copies of the head comps when I'm animating different scenes. I'm not exactly sure what I'm doing wrong.
    Here is the expression I used.
    a=comp("Diane - AE Rig").layer("Body_CTL").effect("Mouth_Control")("Slider")
    framesToTime(a)
    I've tried different expressions, but all it does is change to the current value and thats it. It won't move when I move the slider.
    Thanks for any help.

    If one or more of your subcomps doesn't start at time zero as a layer in its parent comp, you have to compensate for that. It's tricky with multiple levels, but basically you end up with something like this:
    a=comp("Diane - AE Rig").layer("Body_CTL").effect("Mouth_Control")("Slider")
    framesToTime(a.valueAtTime(time + some_offset))
    Dan

  • Expression help with time remapping

    Hi
    I have a 25fps Precomp with an animation that changes on every frame.
    In the master comp I want to apply an expression to its time remap property so that it holds on each consecutive frame for a given duration, eg on Frame 1-15 we see frame 1 of precomp, on frame 16-30 we see frame 2, and so on.  I can't figure this out. Tried posterizeTime and some other bits to no avail and can't find it elsewhere on the web.
    Thanks, Steve

    <Big sigh of relief> Thank-you Dan.
    I read your expressions everywhere on the web and when I need a little help you are there within MINUTES!
    You are such an asset to the AE community.

  • Expression question: Time Remap

    Is it possible to have a slave layer to follow a master layer outside of the same comp?
    I have this expression:
      thisComp.layer("Comp 1").timeRemap
    ..which is the settings of a time remap following those from another...  It was easily made by dragging the pickwhip from one Comp layer to another Comp layer in the same Comp.
      But how could I target  this to a time remap layer comp  to a time remap layer in  a completely different comp.?
    I've tried several variation in terms of  renaming the expression, with no luck..
    any ideas?
    Thanks for any help
    Jeff

    Sorry, never mind...
    ..Just found my own answer
    Also just found out there's a forum dedicated to expressions..duh.. 
    Here's my solution 
    comp("Comp 2").layer("Comp 1").timeRemap

  • PPro + AE Workflow - Time remapping and indiviudal expressions, music sync.

    I've done a lot of work in After Effects while working with it in school and learning the program, but have never really implemented any actual effects or expressions in an actual film. Currently, for a project I'm working on a music based video and hope to include some time remapping and individual expressions on a specific clips. Since my project is music based, and such effects as time remapping would require a lot of synchronization, what would be the best way to add these effects? I've read on a few discussions that it would be best to get the base of my editing done first in Premiere, then import/export (can't remember which) to AE and finish the effects there. This makes sense to me since all of the music would be in its final context. However, I've also read from some that it's easier to add effects to the specific clips that need it, then add them to Premiere project via dynamic link. However, this seems problematic as it would be hard to synchronize with music.
    I'm sure that this isn't an uncommon task, since music videos aren't very daunting, but wondering if I'm just missing something that makes more sense. As always, any all advice and suggestions are greatly appreciated.
    Thanks.

    Not sure if this will help, http://www.youtube.com/watch?v=XQcVllWpwGs&feature=fvst  touches on expressions and waveforms etc. Also 2 tutorials for Premiere  http://library.creativecow.net/search.php?q=audio+%22Adobe+Premiere+Pro%22+%22Adobe+Premie re+Pro%22
    Good luck
    josel

  • Time Remapping - Need help

    I've been playing with this for a while and I just can't figure it out.  In the AE Help it shows keyframes being moved up and down with nice straight lines maintained between them, but when I do it I get bezier handles that produce crazy curves which I can't resolve.  Tried doing it in the Layer window and can't figure out what I'm doing.  I may just not understand this as a concept.
    I have a 6 second animation that I need to incorporate into a composition.  The actual animation stops at 4 seconds, holding on the last frame for 2 seconds.  I want to alter the timing so the animation completes at 2 seconds and then holds the frame for 8 seconds.  In other words, I want the first 4 seconds compressed into two seconds, then the last 2 seconds stretched to 8 seconds, for a total of 10.  It sounds easy, but I can't seem to get my head around it!  Can anyone give me some insight into time remapping that will let me do this?

    I don't really see you problem. In order to change the timing, you change the keyframe value, not its tangents. so you change the keyframe's value from 6 to 2, nothing more. The curves merely express the rate of change inbetween keyframes. To reset to linear interpolation, simply select the keys and hit teh respective icon at the bottom of the graph editor.
    Mylenium

  • Time remap to change opacity

    Hello,
    I have 25 layers in which i would like to switch between their opacities by means of a time remap marker of sorts..
    My idea was to create a comp of all my layers 1-25 (All_Layers), then pre comp this into a Time Remap comp (Final_Comp) to enable their opacities via time remap.
    ie: if in the time remap comp (Final_Comp) and type in a value of 1 this would change layer 1 of (All_Layers) comp value to 100%, If i key in frame 4, this would change the value of layer 4 to 100%.
    All layers would be 0% until keyed into the time remap value.
    I received this expression on another forum compliments of Dan Ebberts,.. Thanks! ( strangely i'm unable to log back into that account to respond.. and no one there to assist me!)
    L = comp("Final_Comp").layer("All_Layers");
    if (Math.round(L.timeRemap) == index) 100 else 0
    Either way, this expression doesn't quite work..
    When i copy this into the layers opacity channel.  it indeed sets an initial value of 0%, but the time remap values in my (Final_Comp) do not trigger the appropriate layer opacity change.... they remain 0%.
    Any ideas?
    Thanks for any help
    Jeff

    Time remapping doesn't seem to update in the Final_Comp the way you would expect. How about scrapping the time remapping idea altogether and use layer markers instead? Apply the layer markers to the All_Layers layer in the Final_Comp and set the comment of the marker to the index (layer number) of the layer that you want to appear at that point. Apply this expression to each layer's (in the All_Layers comp) opacity:
    L = comp("Final_Comp").layer("All_Layers");
    n = 0;
    if (L.marker.numKeys > 0){
      n = L.marker.nearestKey(time).index;
      if (L.marker.key(n).time > time) n--;
    if (n > 0){
      idx = parseInt(L.marker.key(n).comment,10);
      if (idx == index) 100 else 0;
    }else{
      0
    Dan

  • AE CC:  Time-Remapping Glitch

    This was a problem in AE CS6 that I have complained about before.  It is not nearly as bad in AE CC, but it's still there.  Unfortunately it can be difficult to replicate with consistency.  It may have something to do with the conversions between "time" and "frames".
    The problem occurs when you have a sequence of layers (each layer taking up a single frame) that is precomped.
    For example, this expression can cause problems:
    thisComp.layer("frame controller").effect("Slider Control")("Slider").value*source.frameDuration;
    This is abstracting the time-remapping to another layer with a Slider Control.  It then takes the slider value (which represents frames) and converts it to a 'time' value.  I have found this to cause unpredictable results in CS6 and CC.  Sometimes it shows the correct frame, sometimes it doesn't.
    However, if I modify the expression as such:
    thisComp.layer("frame controller").effect("Slider Control")("Slider").value*source.frameDuration + source.frameDuration*.5;
    The result is always the same, and correct.  Here I am telling it to look at the 'middle' of the frame, rather than the 'start' of the frame.
    I hope this is helpful in some way.  I wish Adobe would fix this.
    I will remind you that this problem has never occured in all previous versions I have used.  I am fairly confident it is related to the new image caching system introduced in CS6.

    Sorry guys, I think I have done a poor job explaining this bug.  It has nothing to do with lip sync, or expressions.
    Mylenium seems to express some knowledge of the problem - that being the image caching feature introduced in CS6.  I did notice *less* of these problems with CC.  So it means that Adobe is aware of it and trying to fix it.  But I think something remains unstable in there. 
    When I considered the upgrade to CS6, I did a number of tests -- rendering out lots of our old work, to see if anything didn't render correctly.  And wow, was that something.  Most renders showed some kind of glitch -- all in our layer sequences (eyes, eyebrows, mouths, anything time-remapped basically).
    With CC, I did the same test, and the renders were all perfect, as they were in CS5.5.  So I figured they must have fixed the problem, and they did to a large extent.
    But now after using CC for a few weeks, I am seeing these problems crop up again.
    AE has no problem with 'image sequences', that is, a series of still images files, which are treated by AE as actual footage.  It seems to have issue with the sequencing of layers in a sequence, that is taking 20 layers, and using Keyframe Assistant - Sequence Layers.  I think this is because of the way AE treats Comps differently from Footage.  Footage is composed of discrete frames, with nothing inbetween each frame.  Comps however are treated with floating-point time.  Which is great when you *want* to 'slow down' a Comp, because it can do so smoothly.  But when that Comp contains a layer sequence, I think this floating-point time makes AE confused, because the Comp doesn't contain nice, infinitely-scalable interpolated keyframe animation, but instead discrete pieces of artwork with no interpolation possible.  My solution to this problem -- and it works -- is to add a 'half-frame' to the calcuation.  This I think reduces the likelyhood of incorrect math going on with the image cache, because it's less likely to 'round down' to the previous frame.

  • New development with time remap tool

    It turns out my time remap tool works just fine in other projects just not this one. I do have alot of still shots with some motion graphics which is starting to extend my render times extensively. My question is, how do I solve this rendering time problem? Is there a way manage rendered footage better? Compress it? I'm new to this motion graphics and would appreciate any help.
    thanx
    John

    John,
    Keyframing smooth moves takes a little bit of practice and a BIG Canvas window to really see what you're doing. You'll be using the Canvas window and the Motion tab of the Viewer window a lot for this.
    Once you have the Canvas window up-sized (but still keep it at "Fit to Window" or smaller), set it to Image+Wireframe mode. When you click on or highlight a clip in the Timeline, you should see the Wireframe for that clip in the Canvas window (as long as the playhead remains over that clip). But first, double click a clip in the Timeline to load it into the Viewer window then open the Motion tab.
    Depending on what you want to do, you can approach most keyframed motion tasks two ways; move the Wireframe in the Canvas window, or enter values in the Viewer window. I usually do a bit of both.
    When you set a keyframe that shows up as a green dot (Scale, Rotation, Crop, Opacity, etc), you can right-click on that keyframe and select "Smooth" from the contextual menu. You'll see the purple bezier handles added to the keyframe. You can leave them as they are, or you can move those handles to manipulate the desired action. But for items like the Center control (black dot keyframe), you don't have this option in the Viewer window. Say you want to move the center point over the duration of the clip. Set the beginning and ending keyframe - or just set the beginning keyframe then move the playhead to the end point and manually drag the Wireframe in the Canvas window to the new location and FCP will automatically add a new keyframe. You should now see the path of the clip shown in the Canvas window displayed as dotted line. Right-click on the end or beginning keyframe and select "Ease In/Ease Out" from the contextual menu. Now you should see the same purple bezier handles added. Again, you can use the handles to smooth out movement, or slow down or accelerate a clip (by extending or shortening the length of the handle). If you have a multiple keyframed motion path, you can make wonderfully smooth curves with the bezier handles.
    For more info, look up Bezier in the user's manual, or better yet, go to Amazon.com and buy Kevin Monahan's book; "Motion Graphics and Effects in Final Cut Pro."
    -DH

  • FCP clip time remapping / speed ramping question re realtime after changes?

    Hello All,
    My first post here! I tried searches for this topic but didn't find....
    I wasted hours today messing with the keyframe editor to try and ramp parts of a single clip... first time using this feature and couldn't follow the manual! way too difficult to grasp without fluency in 'techygeekconfusic' lingo. Anyway, I don't think the topic was covered from what I read in my version of the manual.
    So I went straight for the keyframe editor graphic display under the clip in timeframe and put in a few points with the pen tool (using time graph blue line) and seemed to be going great until I realised that the segments in the single clip (ten minutes long) that I was adjusting were affecting what came after - ie slowing down the remainder of the clip. And that was all I could get from my manual that this happened without any explanation about stopping it happen by letting the outpoint of the clip readjust automatically for the changes made to that part of clip so that altered clip would be shorter in timeline...
    I then tried again from the start but noting the minus time on pentool arrow when I slid each keyframe point back and subtracting it from the duration in motion tab and that seemed to work for a while...
    but God bless my little brain! what I really wanted to happen - for the blasted thing to readjust itself automatically after I had adjusted a segment of the clip so that the remaining non-adjusted part would play in realtime with a new shorter outpoint in the sequence timeline - just couldn't be realised in my little brain or in the 'user friendly' control panels of FCP.
    I tried to get hold of the 'bezier' point at the end of clip and drag forward at the same rate as each change but could'nt get hold of it! I tried to put two points with pen tool at same time but couldn't isolate them from one another to create four points for adjustment without having still frames between.. blah blah.. I tried to get snapping to the pen tool points for further control but couldn't... duh!
    Please! how do you do it! obviously I have limited intelligence but I need to do this now. I want to adjust the 10 minute clip (DVCproHD 720p24N format - not that this should matter as my sequence settings are same) adjust the clip at maybe 10 different places so that it ramps in speed to cover up some boring areas and then back to normal speed after the changes - not back to some slo mo **! speed.
    I tried cutting with the razor tool to isolate and that didn't work either and other analogue brain type stuff ok I know you are laughing at me now but please help?!! I'm pretty new to this stuff, give me the old reliable Steenbeck and a few real bins and strips of film hanging on clothes pegs and I'll be ok...
    Help will be most gratefully appreciated!!!!!!!!
    Barra
    Message was edited by: BarraAppleId

    Andy did a very good job explaining the underlying problem with the time remap tool.
    The key thing to remember is the first and last frame are fixed in time. If you speed up the clip, time after that keyframe will have to slow down to compensate. Imagine the clip is a rubber band that has been cut so that it is a long string-like form. Now imagine anchoring each end of it with a push pin to a board. If you grab a point on the band and pull it toward one of the pins, the part of the band on the side you are pulling away from the anchor will stretch (run slower) and the side you are pulling toward will bunch up (run faster). But, when all is done, the start and end will still be at the fixed points.
    The way I've worked through this is to make a general guesstimate of how long the clip will be once all the ramping is complete. For example, I want the clip to start at normal (100%) speed and ramp up to 300% and back down to 100%. I might start with a clip having a constant speed of 200% and then change it to variable and play with it. The key concept is if you can get the overall LENGTH to where it should be, the rest works out fine.
    I have repeatedly asked in the FEEDBACK/New Features page that they add a toggle to the speed/time remap tools. This toggle should allow you decide whether the playback TIME for the clip should be fixed or flexible.
    For example, if you were working with a 4 second clip and wish to slow it down by 50% -
    If 'Maintain Time' is toggled ON, when you decrease the speed of clip by 50% - the clip will still play for 4 sec (but will show only half the total frames).
    If the toggle is OFF, the 4 sec clip will now play for 8 sec and will display all the frames.
    Where this concept becomes really powerful is when it's applied to time remap. If you have 'Maintain time' toggled OFF, as you adjust speed, the end point of the clip will float in time. If you increase the speed, the overall time of the clip will shrink. If you slow it down, the end point moves out in time.
    We need to keep asking ...
    x

  • Media Encoder fails with Time Remapping

    There is a single 1 Minute Clip in the PR CC 2014 timeline, with some time remapping effects. Exporting with Media Encoder CC 2014 SLOWS DOWN speed of the clip after approx. 30 sec unintentionally and therefore gets out of sync with sound, and ends at a complete different frame than in the timeline.
    However, exporting directly from PR CC 2014 gives correct result.
    Anyway, this looks like a major "feature" of ME!?!
    (MacBook Pro 2013, 15", 2,6 GHz i7, OS X 10.9.4)

    source is an uncompressed HD 1080 QT .mov file rendered from AE.
    sequence settings are 1920x1080, 25fps, square, progressive
    export settings are QT, H.264, 1920x1080, 25fps, progr, square, 20000kbps

  • Why can't Adobe Premiere Pro CC 2014 Time remap Audio and Video together?

    In case you didn't notice, my question is WHY.  I don't know why Premiere Pro can't do this.  From what I understand at the moment, the only way to time-remap audio in any way shape or form using Adobe software is through Adobe After Effects, which my computer has absolutely no chance of running ever.  I know how to do regular stretching of audio in both Audition and Premiere Pro, but apparently I can't time-remap audio using either of these programs.
    So why can't Adobe Premiere Pro time remap audio along with the video?  What's the reason that it can't?  It's a massive disappointment and would be very impressive to see accomplished in the future.  If it's possible to time remap audio and video together in After Effects, that's great and all, except for the fact that I can't use that program.  Why can't it be done in Premiere Pro and will it ever be possible in Premiere Pro?
    Also, will time remapping audio become possible in Audition someday?

    That sounds like a great idea.  File a Feature Request:
    Adobe - Feature Request/Bug Report Form

  • Time Delay Express VI default to show as icon?

    I am really only intrested in the Time Delay "express vi"
    This is the only express vi I ever use and it drives me nuts everytime I drop it in and this HUGE box takes up space for nothing.
    I would really love to have just the one VI able to default to Show as icon.
    Attachments:
    Time.png ‏32 KB

    Part of me says that Express VIs should be as annoying as possible so they go away.  But, in the spirit of trying to be helpful I will offer one suggestion.  I have created a subVI which only contains the time delay Express VI.  You can add this to the Palette (ie. user.lib) and go to Tools->Advanced->Edit Palette Set find the SubVI, right-click and select Place VI contents.  Now when you choose this version it will drop in as an icon.
    Attachments:
    TimeDelay.vi ‏19 KB

  • Motion Effect doesn't always work with Time Remapped clips

    Hello all. I used Premiere 4 extensively (yes, '4' not 'CS4') and I'm just getting back in to it with CS6. Lots of cool new stuff to learn but I'm happy to see the basics are pretty much the same!
    I'm wondering if anyone has much experience using motion effects on time-remapped clips. If I set 'position' or 'scale' keyframes in the Effect Controls, the changes are not always reflected in the program monitor, depending on the clip. If I try and set keyframes by dragging the video around the program monitor, it puts keyframes in places where I don't expect.
    This doesn't affect all time-remapped clips, just some of them. Or maybe it does affect them all, just to varying degrees, depending on how extreme the time remapping is. I'm guessing now.
    If I were to speculate further, I would say that the motion effect is operating on the clip before the time remapping gets applied. Again, just a guess, which is why I'm asking if someone more knowledgable has any insights before I pursue this much further..
    Many thanks!

    Hi Jeff, thanks for your response! Nested clips, you say? I have heard of these things but I can only imagine what they are and how to use them. Sounds like it's time for me to RTFM!
    There's so much new stuff, it doesn't surprise me that I have to not only figure out the new feature, but the proper workflow to utilize it. I gotta ask: Do you know of any documents along the lines of "how to use modern premiere from the perspective of an antiquated premiere professional"? 4.2 was my bread and butter for many years and I knew it like the back of my hand. As such, it's kind of hard to stay awake sifting through Adobe's docs which generally assume no prior knowledge; although you giving me a place to start is a big help! But like I said: I gotta ask because it'd be great if there was something just for 'people like me.' (ain't it always the case? )
    Again, thank you.

  • Can I use Time Remapping in Flash?

    Hello Guys,
    I just start working on Flash and I can't find how to use kind of Time Remapping in Flash.
    I always work with AE but this project I have to work with Flash...
    Is it possible ?
    Thanks!

    You can to an extent.  It's not as good as AE where it will interpolate frames.  Here's what you can do...
    Put your artwork inside of a symbol.  This is the equivalent of a composition in AE.
    Place your symbol in the stage.
    Click it once and its properties will appear in the Properties pane.
    Look under the "Looping" section of the Properties window.
    You can change the options to "Loop", "Play Once", or "Single Frame".
    The "First" number corresponds to the frame number inside your symbol.
    You can change these settings for every key frame you set.
    The biggest difference between Flash and AE is that tweening a time-remapped symbol won't interpolate frames.  Instead it will mess up your time-remapping.  The best practice is to put your time-remapped symbol inside another symbol, and tween and puppet the new symbol instead.
    An example...
    You can create a mouth shapes for lip sync and put them in a symbol.  Then set the symbol to "Single Frame" and set keyframes in your timeline to call up each mouth shape to match your audio.  Then to move your mouth symbol around on your character's face, you can put the mouth symbol into a new symbol, and just puppet the new symbol.

Maybe you are looking for