Time Remapping code help

I'm trying to make some audio visuals for my YouTube channel, and I was trying to get an object to rotate during the song, so it would go faster when the song was louder and vice-versa
But when I tried my code, the object went back and forth in it's rotations, because when the music got quiet it rotated backwards
Could anyone help me make a code that makes sure the object only rotates clockwise, while still going faster when the music gets louder?
Thanks
-RaPiD

And that "code" is? Sorry, but it's not particularly useful to talk about expressions (presumably) without actually posting them. Anyway, your description is a clear indication that you have some reading to do...
Expression Speed and Frequency Control
Dan Ebberts's Expressioneering Design Guide
Mylenium

Similar Messages

  • 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

  • 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.

  • I keep on getting this error when i try to copy files to my 2T Time Capsule, Please help im running out of space on my MacBook Pro.... The operation can't be completed because an unexpected error occurred (error code -50)

    I keep on getting this error when i try to copy files to my 2T Time Capsule, Please help im running out of space on my MacBook Pro....
    The operation can’t be completed because an unexpected error occurred (error code -50)

    I would get an external drive today and copy all your stuff off the TC.. forget trying to load more onto it. There is a good chance after 3years (A 2TB should be only about 2years tops), the disk or the TC itself is on the way out. Do it immediately. If TM is also failing to backup you need to recognise symtoms of impending doom.
    Unfortunately the error messages are archane and it is hard to discover their meaning.
    You also cannot verify a network drive.. you can verify the TM sparsebundle though so do that.
    A5. http://pondini.org/TM/Troubleshooting.html
    Reboot the whole network from off.. certainly if you run later OS it can simply lose the drive..
    If you still fail to be able to copy to the TC.. then get that external and copy off it. Tell us if you can do that.

  • 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

  • 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

  • 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

  • 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.

  • How to apply Time Remap to multiple clips simultaneously

    Quite often after trimming many different clips for a wedding video I will then want the majority of them slowed down to a 50% speed. I know how to apply the Time Remap Speed % change in the Motion Tab, but have yet to figure out how to make the change to multiple clips simultaneously.
    Thanks for your help!

    You can apply a speed change from one clip to multiple clips by copying the first one, then pasting attributes (option + V, then select speed from the list) onto as many clips as you have selected.
    Just be aware that this will ripple your timeline by extending all of your clips. FCP keeps the original out point of the source clip, not the out point of each cut on the T/L.
    Tim

  • Undesired time remapping

    This one has me stumped. I'm thinking it's related to render files, but can't quite figure it out.
    Had a piece that contained several clips that were speed-reduced to 40%. Not strictly time-remapped with keyframes and all, just speed reduced.
    Piece was great, rendered all, compressed, delivered. All was well.
    Then, to open up some space on the hard disk for the next project, I made a couple of poorly-thought-out stabs at removing unused clips with media manager and/or find:unused. These didn't really go anywhere, and I don't believe I actually ended up removing any clips. Some were briefly offlined, then reconnected, but none were actually removed.
    What did happen was FCP gave me some funky time-remapping in clips that were never time-remapped to begin with.
    Any ideas how this might happen? When I play the master sequence down in FCP, everything looks great, but when I double-click on some of the clips in the sequence and view them in the viewer, they're all screwed up; time remapped, jittery, just weird, and not at all like they appear in the sequence.
    When I export the current master sequence to compressor, it doesn't come out looking like it does when I play it in the canvas...it comes out with the individual clip weirdness that I see when I view the clips individually in the viewer.
    So I'm wondering if when I play the sequence I'm looking at the render files, but when I open the clips I'm looking at...something else?
    And to add to the weirdness, when I open my backup project file, I get exactly the same weirdness.
    Ideas?

    are the original QT capture files normal or have they been affected?
    i know when i have done time remapping (just reducing speed) and then have dumped the original files only to recapture them later that if I dont recapture them on the exact hard drives listed during reconnecting the media, that fcp screws everything up.
    7 second clips contain minutes and minutes of footage.....that or a 7 sec. clip will be a still shot that I never used.
    I have found media manager to never work properly so i just dont use it anymore.....
    if you have time try and recapture all the original footage on the original hdrives and see if that helps.....
    thats the best i can do....so i hope it helps.....
    rob

  • Time remapping a nested sequence results in black/empty video

    Hey!
    I have a long sequence (47 minutes), which I wish to time remap (to increase the speed at certain Keyframes). I have therefore nested the sequence into a Master Sequence, where I perform the time remapping. However I experience what appears to be a weird bug: At a certain frame the video turns black/empty and stays that way - even though the original sequence still has video material.
    It doesn't help splitting the clip (nested sequence) up in smaller clips and time remap those individually - the empty frames just appear earlier in each clip.
    Export works fine
    When I export the sequence as Media, the output seems fine however.
    I hope, that you are able to help me or tell me, if I'm doing something wrong.
    Thanks in advance!
    Hardware info
    I work on a MacBook Pro (Retina, 15-inch, Mid 2014).

    it depends on how powerful the video card is, and how many accelerated effects are being used. it might slow you down a little, or alot. if you have an intel graphics, they arent very powerful to begin with, basically just good for browsing the web. however premiere tries to use them and they cause lots of problems. im not sure if its premiere or intel thats causing the problem, but they dont play nice together.  if you have the nvidia version macbook, you might have opencl or cuda available in the renderer menu. if it was on opencl, could try cuda, or opencl if it was on cuda.

  • FCP XML to Flint - Problems with Time Remap

    My Flint artist and I have had some problems with the XML Export and Import that we cannot figure out. The XMLs from FCP sequences that have variable speed Time Remaps applied show up on the Flint with those particular clips with the wrong in/out points in both the source and record times. Also, the speed ramp info doesn't show up properly.
    We have followed the Flint manual to a T on importing correctly. Anyone encountered this or know a solution? Especially why it's throwing off the in points. It screws the whole timeline when that happens.
    Thanks in advance.

    The TimerEvent target is a flash.utils.Timer object and does
    not contain a reference to your lblTimeUntil label.
    Recode
    trace("Seconds Left" + evt.target.lblTimeUntil.text);
    to
    trace("Seconds Left" + lblTimeUntil.text);
    and you will not blow up anymore.
    This code will display the count up till refresh.
    public function onTick(evt:TimerEvent):void {
    var minuteTimer:Timer = evt.target as Timer;
    lblTimeUntil.text = minuteTimer.currentCount.toString();

  • I deleted my microsoft office:mac 2011 word from my toolbar. I have Mac OS X version 10.6.8.  I tried to reinstall but it won't work. I get an error message each time. Please help!!!!!!!!!!!!!!

    I deleted my microsoft office:mac 2011 word from my toolbar. I have Mac OS X version 10.6.8.  I tried to reinstall but it won't work. This has never happened before.  I get an error message each time. Please help!!!!!!!!!!!!!!  I don't have time machine. 

    By Toolbar, do you mean the Dock?  The Translucent bar normally at the bottom of the screen, but sometimes at the right or left side?
    If that's what you mean, the Dock is merely a shortcut to what is already inside the Applications folder's Microsoft Office 2011 folder.  If you have Word inside your Microsoft Office 2011 folder, you can drag it back to the Dock.
    If you deleted the Microsoft Office folder, or it is empty, you'll have to reinstall it. 
    If you don't have your registration code, you'll have to call Microsoft for a new one.

  • Removing time-remapping deletes clip

    I'm doing something wrong here, and I know it's probably a very simple mistake.
    I implemented a time-remapping segment in a clip in CS6. Then, I attempted to remove it using the following instructions from the site:
    Remove the Time Remapping effect
    You cannot toggle the Time Remapping effect on and off like other effects. Enabling and disabling Time Remapping affects the duration of the clip instance in a Timeline. In effect, Time Remapping performs an edit. However, you can use the Toggle Animation control in the Effect Controls panel.
    Click the Effect Controls tab to make this panel active.
    Click the triangle next to Time Remapping to open it.
    Click the Toggle Animation button next to the word Speed, to set it to the off position. This action deletes any existing speed keyframes, and disables Time Remapping for the selected clip.
    The problem: instead of just deleting the speed keyframes, when I clicked "okay" it deleted the entire clip from the timeline.
    What am I doing wrong?
    Kathleen

    Thanks for the quick response. I just repeated my steps exactly:
    Loaded sequence with single video clip in Timeline track Video  1.
    Right-clicked on clip to display - Show Clip Keyframes/Time Remapping/Speed
    Added two keyframes to the clip.
    Lowered the yellow control line to 40% between the two keyframes
    Stretched the right side of first keyframe and left side of second keyframe to create more of a transition in speed.
    Reviewed the clip to see the effect. And then went to remove it.
    Highlighted the clip in Timeline
    Went to Effects Control panel and clicked on the “stopwatch” next to Speed to toggle it.
    Got a prompt: “This action will delete existing keyframes. Do you want to continue?”
    Clicked OK and the entire clip disappeared from the sequence.
    Any help appreciated.
    Kathleen

Maybe you are looking for