Forum Replies Created

  • Adam Prejean

    February 14, 2013 at 3:39 pm in reply to: Triggering Opacity (and other things) with Markers

    This seems to be working the way I need. Not sure if it needs to be cleaned up a bit though.

    fadeFrames = 10;
    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time <= time){
    n++;
    if (n > marker.numKeys) n = 0;
    }
    }
    if (n > 0){
    if (marker.key(n).comment == "stop")
    ease (time,marker.key(n).time - framesToTime(fadeFrames),marker.key(n).time,100,0)
    }else{
    0
    }
    if (n > 0){
    if (marker.key(n).comment == "start")
    ease (time+.5,marker.key(n).time - framesToTime(1),marker.key(n).time,0,100)
    }else{
    0
    }

  • Adam Prejean

    February 13, 2013 at 11:17 pm in reply to: Triggering Opacity (and other things) with Markers

    That works, but If I add a 2nd set of “start” and “stop” markers I run into the same problem with the opacity snapping back to 100% for the 2nd “start” marker.

    Is there a way to set opacity at 100% 20 frames prior to the “start” marker?

    Also, any ideas on the time remap portion to have it show the animation that happens before the hit? Similar to your audio sync example with the drummer, but if the arm’s animation was slower, it would disappear before reappearing for the next animation to start.

    Thanks so much for your help!

  • Adam Prejean

    February 13, 2013 at 9:51 pm in reply to: Triggering Opacity (and other things) with Markers

    That is exactly what I needed!

    One more thing… Some animations actually start before the note “hits”. For example, if my main Comp has a cube move across the screen entering screen Left and exiting screen Right, but the Trigger Marker is when the cube is in the center. In my PreComp for the cube’s animation the null “action” layer would have a Marker when the cube is centered. Using your time remap script as is, the cube would “pop” into existence in the center.

    I changed the line…
    if (marker.key(n).time > time){

    to this…
    if ((marker.key(n).time)-1 > time){

    … to have the frames prior to the trigger marker be visible.

    This works for the animation before the marker, but the cube disappears if it’s still visible when the next marker hits. Is there a way around this?

    Also, using the same cube example, I would need the opacity expression to allow the layer to be at 100% if the animation starts before the “start” marker.

    I’m assuming it’s correct that I can’t have a “start” and “stop” animation since the preComp is being time remapped. If the cube went across the screen for note “C#” and the same note happens again before the cube is finished moving across the screen, the cube would appear to snap back to it’s “start” marker position (not what I wanted). My work around for this has been to just duplicate the layer and add/remove markers as needed so that both instances of that note’s animation can play close together.

    I know a LOT of this can be manually keyframed (but why?). I’m trying to streamline a workflow so that changing the piece of music is a simple matter of running the midi script to get my markers.

    Thanks so much Dan!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy