Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expression Q

  • expression Q

    Posted by Alek Panfilov on October 18, 2005 at 10:56 am

    once again i have a Q about expressions,
    firt of all, in comp i have a slider wich is generating random numbers between 0 and 100 ,
    and also i have 8 solids, attached to objects in zaxwerks inv, and i want Z-3d-scale values of
    those solids to act like equalizer led, so i was thinking about expression for the Z-3d-scale value
    of those solids wich will look something like this :

    temp = thisComp.layer(“slider”).effect(“Slider Control”)(“Slider”);
    temp2 = if(temp //HERE I DONT KNOW WHAT TO ENTER// = array (20, 100))100 else 0
    [100, 100, temp2]

    ???????????????????????????????????????????????
    and now explanation to my heretical writings 😛
    i whant temp2 to be 100 when temp is in array between 20 and 100, when its below 20, temp2 is 0.

    i’m little lost in expression , so maybe it’s not properly wrighted, but way of thinking is good 😉

    cheers.

    Alek Panfilov replied 20 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 18, 2005 at 1:20 pm

    I think you just need something like this for the middle line of your expression:

    if (temp < 20) temp2 = 0 else temp2 = 100; Dan

  • Alek Panfilov

    October 18, 2005 at 1:26 pm

    thankyou Dan 🙂

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