Forum Replies Created

  • Jack Phillips

    April 11, 2014 at 3:59 pm in reply to: Expression error trying to rotate z using index

    Xavier,

    This works perfectly. I didn’t even know the “switch” statement existed. Must read up on it.

    Thank you very much!

    Jack

  • Jack Phillips

    April 11, 2014 at 11:36 am in reply to: Expression error trying to rotate z using index

    Hi James,

    Thanks for your response. Unfortunately, changing the code did not change the result (updated code included).

    The statement to get the “num” variable works as expected (btw, (10/5 % 1) will be 0 as the remainder of (10 divided by 5) divided by 1 is 0). The problem seems to be with the conditional statements. And the error doesn’t appear until the sixth layer in the comp upwards.

    Thanks,

    Jack

    num=(index/5 % 1);
    t = 0;
    if (num==.2) {
    t=-60
    };
    if (num==.4) {
    t=60
    };
    if (num==.6){
    t=-120
    };
    if (num==.8){
    t=120
    };

    t

  • Jack Phillips

    May 22, 2007 at 11:03 am in reply to: Find and Replace

    That’s it! Thank you very much.

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