Forum Replies Created

  • Jonas Karten

    May 9, 2019 at 9:44 am in reply to: Position of shape layer elements

    Thank you very much Dan, this is what I needed. Didn’t know about the propertyGroup yet! Great!

    With the help of your code I’ve applied it to the scale within the “transform: Circle 123” tab of the individual circle:

    sourceLayer = comp(“Raster”).layer(“Verlauf”);
    sampleSize = [1,1];
    samplePoint = toComp(thisProperty.propertyGroup(2)(“Transform”)(“Position”));
    color= sourceLayer.sampleImage(samplePoint,sampleSize);
    x=color[0]*100;
    [x,x]

    I understand that propertyGroup(2) looks up the value of the second element within the group/transform-tab, which is the position, right? Like this I can still use the percentages and a starting size of the circle.

  • Jonas Karten

    May 2, 2019 at 9:36 am in reply to: Grid Element Position to

    Thank you very much for this detailed answer! I have to admit I didn’t expect it would be so complicated, this is a bit over my head.

    With the right keywords (“constant speed” instead of “max speed”) I’ve found and older thread with a similar problem. With the help of a slider control and roving keyframes, the script creates a constant speed. I changed “linear” to “ease” and I believe it now does what I want.

    if (numKeys > 1){
    spd = thisComp.layer("control").effect("Slider Control")("Slider");
    t1 = key(1).time;
    t2 = key(numKeys).time;
    tTot = t2-t1;
    dTot = speedAtTime(t1)*tTot;
    deltaT = time - t1;
    valueAtTime(linear(deltaT*spd,0,dTot,t1,t2))
    }else
    value

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