Forum Replies Created

Page 214 of 285
  • I forgot – layers can be offset using their index. So assuming your red solid is layer 1 (the topmost), all other layers can be offset using this:

    thisComp.layer(1).position.valueAtTime(time + framesToTime(5)*(index-1)

    Mylenium

    [Pour Myl

  • [Brian Charles] ”
    Use thisComp.layer(“Deep Red Solid 2″).position.valueAtTime(time +5)”

    No, that’s wrong. This would offset the time by 5 seconds (since AE calculates based on time not on frames) and not 5 frames

    thisComp.layer(“Deep Red Solid 2″).position.valueAtTime(time + framesToTime(5))”

    Mylenium

    [Pour Myl

  • [Brian Charles] ”
    Use thisComp.layer(“Deep Red Solid 2″).position.valueAtTime(time +5)”

    No, that’s wrong. This would offset the time by 5 seconds (since AE calculates based on time not on frames) and not 5 frames

    thisComp.layer(“Deep Red Solid 2″).position.valueAtTime(time + framesToTime(5))”

    Mylenium

    [Pour Myl

  • Mylenium

    April 5, 2006 at 5:18 am in reply to: Random Letters

    Yeah, while it works perfectly, it’s way to complicated for someone who’s just started to begin using expressions. Not meaning to be negative, but there is no point in showing off your programming skills if the guy on the other end doesn’t understand a thing and is unable to modify your stuff easily (Can you be sure he even understands the concept of ASCII/ Unicode char codes? Can you be sure he even understands the concept of functions, methods and variables?). You know, people don’t learn anything from just copying pre-made code they don’t see thru… In addition to that my concept can easily be expanded to include other letters or even entire words, which might be what he needs at some later point.

    Mylenium

    [Pour Myl

  • Mylenium

    April 5, 2006 at 5:18 am in reply to: Random Letters

    Yeah, while it works perfectly, it’s way to complicated for someone who’s just started to begin using expressions. Not meaning to be negative, but there is no point in showing off your programming skills if the guy on the other end doesn’t understand a thing and is unable to modify your stuff easily (Can you be sure he even understands the concept of ASCII/ Unicode char codes? Can you be sure he even understands the concept of functions, methods and variables?). You know, people don’t learn anything from just copying pre-made code they don’t see thru… In addition to that my concept can easily be expanded to include other letters or even entire words, which might be what he needs at some later point.

    Mylenium

    [Pour Myl

  • Mylenium

    April 4, 2006 at 6:55 pm in reply to: velocity

    Yeah, sorry, my mistake. Just like position and scale, velocity is an array property with two separate components. Anyway, I think you’re just interested in the absolute speed, so thisComp.layer(“PARTICLE”).speed should work. You can attach this value directly to the text layer using concatenation, eleminating the need for the numbers effect:

    “VELOCITY” + thisComp.layer(“PARTICLE”).speed

    You may wanna use rounding, though, otherwise your text layer can get very long. So it could be

    “VELOCITY” + Math.round(thisComp.layer(“PARTICLE”).speed)

    Mylenium

    [Pour Myl

  • Mylenium

    April 4, 2006 at 6:55 pm in reply to: velocity

    Yeah, sorry, my mistake. Just like position and scale, velocity is an array property with two separate components. Anyway, I think you’re just interested in the absolute speed, so thisComp.layer(“PARTICLE”).speed should work. You can attach this value directly to the text layer using concatenation, eleminating the need for the numbers effect:

    “VELOCITY” + thisComp.layer(“PARTICLE”).speed

    You may wanna use rounding, though, otherwise your text layer can get very long. So it could be

    “VELOCITY” + Math.round(thisComp.layer(“PARTICLE”).speed)

    Mylenium

    [Pour Myl

  • Mylenium

    April 4, 2006 at 6:38 pm in reply to: velocity

    Fortunately AE already does this for you.

    thisLayer.velocity

    Mylenium

    [Pour Myl

  • Mylenium

    April 4, 2006 at 6:38 pm in reply to: velocity

    Fortunately AE already does this for you.

    thisLayer.velocity

    Mylenium

    [Pour Myl

  • Mylenium

    April 4, 2006 at 6:36 pm in reply to: Random Letters

    You could try using the fromCharCode() or a custom array, the latter perhaps being more practical. Try this:

    my_alphabet=[“a”,”b”,”c”,…,”z”] //insert the complete alphahabet

    my_random_a = Math.round(random(0,23)); //arrays start with zero
    my_letter_a = my_alphabet[my_random_a]; //get the random letter from the alphabet

    //create the same setup for all 5 letters

    [my_letter_a + my_letter_b + my_letter_c + my_letter_d + my_letter_e] //print the result string

    This should give you something usable if you apply it to the source text.

    Mylenium

    [Pour Myl

Page 214 of 285

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