Forum Replies Created

Page 3 of 3
  • Riccardo Sinti

    July 26, 2013 at 7:55 pm in reply to: How to randomly change color of characters

    Its this, from the thread:

    seedRandom(textIndex,true);
    palette = [[100,0,0],[0,100,0],[0,0,100],[0,100,100],[100,0,100],[100,100,0],[100,50,0]];
    // [red,blue,green,cyan,magenta,yellow,orange]
    idx = Math.floor(random(palette.length));
    palette[idx]

  • Riccardo Sinti

    July 26, 2013 at 7:01 pm in reply to: How to randomly change color of characters

    I am. My typo was in the post not the expression.

  • Riccardo Sinti

    July 26, 2013 at 6:55 pm in reply to: How to randomly change color of characters

    I still get “no property or method named ‘text index'”

  • Riccardo Sinti

    July 26, 2013 at 6:22 pm in reply to: How to randomly change color of characters

    When I apply this expression to Fill Color RGB I get the warning:

    Class ‘global’ has no property or method named ‘textIndex’

    Am I not applying it to the right parameter?

  • Riccardo Sinti

    July 26, 2013 at 6:06 pm in reply to: Rotate a layer to be perpendicular to a path?

    PERFECT!

    You are the best!

    Thanks so much!

  • Riccardo Sinti

    July 26, 2013 at 5:43 pm in reply to: Rotate a layer to be perpendicular to a path?

    I’ve got a pre-comp with the path I’m referencing then on the position of the layers that are aligned on the path I have this expression:

    PathPercent=effect(“Path Percent”)(“Slider”);
    PathLength=comp(“PATH”).duration;
    PathCalc=(PathLength*PathPercent)/100;
    PathPos = comp(“PATH”).layer(“PATH”).position.valueAtTime(PathCalc);

    then on the “Path Percent” “Slider” I have this to control spacing and offset along the path

    f = index*thisComp.layer(“OFFSET”).effect(“FACTOR”)(“Slider”);
    f + thisComp.layer(“OFFSET”).effect(“OFFSET”)(“Slider”);

    So this rig has allowed me to position the people on the perimeter of my logo shape (which is defined by the PATH) and control the space between them with the FACTOR.

    Does that make sense?

  • Riccardo Sinti

    June 7, 2013 at 3:02 pm in reply to: Wiggle in one dimension with a floor

    That last expression works great and I actually understand how it is working.

    “you want to wiggle the layer in the y direction and scale it at the same time so that the bottom edge doesn’t move,”

    That’s right, I want the bottom edge to stay at floor level.

    I don’t want to move the anchor point because it rotates around center.

    Thanks for all the help you give this community!

  • Riccardo Sinti

    June 6, 2013 at 5:09 pm in reply to: Wiggle in one dimension with a floor

    Thanks guys for your help but none of those seem to do what I wanted.

    I wound up using this which I cobbled from a the same question I realized I posted many years ago

    w = wiggle(4,200) – value;
    value + [value[0],-Math.abs(w[1])]

    It kept my wiggle in the Y axis from dropping below the layer’s original y start point but when I apply it the layer’s x shifts so I have to relocate along the x axis. I guess that is from adding value + before the [value[0],
    z is not affected I guess because it isn’t mentioned in the array?

    Any idea how to rewrite this so I can leave x and z dimensions alone.

    The next thing I would like to do is be able to add an expression to scale so that when I scale the layer it’s lower edge will always touch the floor.

Page 3 of 3

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