Forum Replies Created

Page 32 of 32
  • Thank you for the answer, but it doesnt solve my problem.
    The script, as i plan it, should be able to handle an arbitray number of vertices per cycle, or even have them in random distribution (so when rotobezier is off it looks like a regular or irregular spider net.), and also be able to play with tangents orientation and length.
    But for I this should know what are the smoothest values for the tangents (the ones that reproduce the most the original curve). I tried to have them autocalculated by AE like this:

    myMask.rotoBezier = true;
    myPath.vertices = V_Array; //the array of vertices
    myPath.rotoBezier = true;
    myMaskPath.setValue(myPath);

    it returns no error but doesnt work, the mask is a concatenation of segments… I’d love to know the correct syntax !

  • Xavier Gomez

    October 19, 2011 at 9:37 pm in reply to: CC Cylinder and Camera

    Thank you for the idea, i’ve looked through the net, freeform looks really nice, but for CS3 it is a third-party pluggin which i dont have,… I’ll find my way. Thank you.

  • Xavier Gomez

    October 13, 2011 at 5:47 pm in reply to: Store the time at which a variable reaches a value

    Thank you, working !

    I am still wondering about optimization: this time T either doesnt exist (the threshold is never reached), either is unique (since it is the FIRST time the threshold is reached). So ideally it should be computed only once for the whole composition, and not at each frame.

  • Xavier Gomez

    October 13, 2011 at 4:29 pm in reply to: Store the time at which a variable reaches a value

    Ok, i’ll put it differently.

    The main layer’s position is given by transform.position + Delta-pos(the exact form of the expression Delta-pos is irrelevant here). But,
    (1) i want it to be zero until something happens in some other layer
    (a quantity, say k, reaches a threshhold value, say k_threshhold);
    (2) after that i only know the expression of Delta-pos in local time (time-T) for time>T, where T is the time at which the threshhold was reached. But,… i dont know T ! and i dont know how to tell AE what is the value of T.

  • Xavier Gomez

    October 12, 2011 at 8:56 pm in reply to: Bouncing movement

    Thank you.

  • Xavier Gomez

    October 12, 2011 at 8:30 pm in reply to: Bouncing movement

    Sorry again, i’m not quite sure, in this particular example, what the (true) refers to, and therefore how the loop can be terminated sometimes.
    As i understand, EA goes through the algorythm for each frame (time of the comp) and returns the coordinates of the object, which ultimately depends on some quantity y. So for each frame AE does basically this (see below).
    Is it the ” break; ” commands, although they are inside a ” if(){} ” that actually prevents AE to go back to the start of the while(true) loop and test infinitely many intervals ?

    (definition of some parameters)

    (intermediary calculations)

    Test if time belongs to the initial time interval
    {y= }
    else{
    while(true){
    (redefinition of some variables,
    in particular definition of a new time interval,
    contiguous to the previous one)
    Test if time belongs to the new time interval{
    y=
    break;}
    Test another condition{
    y=
    break;}
    }//ends while(true)
    }//ends else
    Returns the position of the object.

  • Xavier Gomez

    October 12, 2011 at 5:38 pm in reply to: Bouncing movement

    Thank you for the fast answer.
    And I’ll know now (that’s helpful!) that AE scripts are written in JavaScript.

    Side question: does it take much computer ressources to write neverending loop scripts like while(true) or is it safe ?

  • Xavier Gomez

    October 12, 2011 at 9:06 am in reply to: Bouncing movement

    Hi!

    i arrived here while searching for loops in AE scripts.
    I searched the forum and could only find this page.
    Can someone explain how the while(true) loop works ?

    In the example given above, what should be true for the loop to go on and how does this loop terminates?
    quite unclear to me. (i understand the maths in this example and what is happening, but i dont understand the grammar…)

    Also, is there a possibility to make a loop with a given number of iterations, like for n=1 to 10, with AE ?

Page 32 of 32

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