Forum Replies Created

  • Chewbacca

    April 10, 2007 at 1:17 pm in reply to: Audio Amplitude and Motion, Position

    Tks for the help i improved a function that i was working on and it works, until now hehe

    Ciao

  • Chewbacca

    April 9, 2007 at 9:26 pm in reply to: Audio Amplitude and Motion, Position

    Hey dudes,

    I’m now trying with layer markers, and i have a problem.

    n=0;
    if(marker.numKeys > 0){
    n=marker.nearestKey(time).index;
    if(marker.key(n).time > time){
    n–;
    }
    }
    start = value_at_time(time);
    end = add(start,[260,0]);
    linear(time,1,1.3,start,end);

    The object moves once and stays put because i can

  • Chewbacca

    April 4, 2007 at 1:55 pm in reply to: Audio Amplitude and Motion, Position

    Lol i can

  • Chewbacca

    April 4, 2007 at 1:46 pm in reply to: Audio Amplitude and Motion, Position

    – “Does it stay there?” no i wanted that the object come to original position.
    – “What happens when the next sound comes?” repeat the same stuff

    “It looks to me like you’re assuming in your code that you can set a varaible (B) and it’s value will persist to subsequenct frames. It won’t. That’s not to say that what you’re trying to do can’t be done, it’s just a little tricky.”

    – so i have to this by hand? theres no global variables?

  • Chewbacca

    April 4, 2007 at 1:40 pm in reply to: Audio Amplitude and Motion, Position

    To wuzelwazel

    – I know that = is an assignment operator, but tks for the warning i just missed that, common typo =P
    – I will start putting semi-colon
    – I did c the Trapcode stuff but i cant find the beat that is similar, its very irregular (damn)

  • Chewbacca

    March 29, 2007 at 6:28 pm in reply to: Audio Amplitude and Motion, Position

    Hmmm, i will try

    I have an object(ball,square, doesn’t matter), and i want it to move(like up and down, doesn’t matter too), only when a noise begins, this noise has a start and a end, if u c the graphic of the amplitude theres a some zigzag before it ends(thats garbage to me,that still changes the position).

    Imagine a hammer beating, every beat i want to move something, so my idea was to only move the object when the beat comes and eliminate the trash(zigzag) between the start and the end.

    Example: The amplitude start at 1 sec and ends at 2 sec, so at 1 sec i mov the object like to the left, the rest of the time he stays put.

    p_act = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    B = 0
    if(p_act <= 0 && B = 0) {p_act = 0} if(p_act > 0 && B = 0)
    {p_act = 20
    B = 1}

    if(p_act > 0 && B = 1)
    {p_act = 0}

    [325+p_act,150+value[1]]

    I tried my best to explain ;_;
    If still u cant understand i will draw it lol. Its easier to everyone.

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