Forum Replies Created

  • John Toi

    November 21, 2010 at 1:48 pm in reply to: creating a CUBE in AE

    Step 1
    Create a square, (eg. 50*50)then make it 3d, offsetting the z anchor point by half the cube size (eg, 25)then duplicate it 5 times

    Step 2
    For the first,leave it as it is
    For the second, change the x orientation to 90
    For the third, change the x orientation to 270
    For the fourth, change the y orientation to 90
    For the fifth, change the y orientation to 270
    For the sixth, change the y orientation to 180

    Step 2 .Alt
    After step 1, make sure the 6 copies are on the top of the timeline, or simply precompose them. Then add the code to the orientation (havent tested the code, hope it works =P)

    if(index = 1)
    value + [0,90,0];
    else if(index = 2)
    value + [0,270,0]
    ;
    else if(index = 3)
    value + [90,0,0]
    ;
    else if(index = 4)
    value + [270,0,0];

    ;
    else if(index = 5)
    value + [0,180,0]
    ;
    else if(index = 6)
    value
    ;
    else value;

  • John Toi

    August 26, 2010 at 7:57 pm in reply to: Changing speed of time based value

    Nevermind, solved it.
    life = 5; // life
    offset = 0; // pause offset
    res = 5; // resistance

    seedRandom(index,true);
    pause = random(life+offset);
    if(time < pause)
    age = 0;
    else
    age = (time-pause) % life;
    x = age*age;
    linear(x,0,(life*life),0,res);

    Based on the fact that squaring time increases the speed.

  • John Toi

    August 17, 2010 at 8:14 am in reply to: Changing speed of time based value

    Thanks for the reply.
    From what I understand, the easeOut() function interpolates the values like the linear function and adds an ease to each end. However, i was trying to get the speed to constantly decrease as the value increases from 0 to the value of the life variable and then to repeat the same thing as the value resets to 0.

    Thanks again

  • Amazing! Thanks for the quick response!

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