Forum Replies Created

  • Ian Harper

    February 7, 2019 at 8:23 pm in reply to: Duplicate footage in precomp not syncing in composition

    Well, I’m more glad that it’s a bug than just me. I fixed it by opening both comps and moving the layer a little bit, then I put -20 pixels on the mask so that it wasn’t catching anything outside of the people and then just blurred the people a bit to hide it.

    Thanks, I’ll put in a bug report.

  • Adding the true fixed it. But I’m still unsure how the seedRandom(index,true); give each layer a different starting point without being in the actual formula. Normally I’ve seen where you would have a variable like “seed” then you put seedRandom(seed,true); to give that seed a random value to be inserted in into other another formula like “segStart = seed*segDur;” but your code seems to be a function not associated with the sine function.

    freq = .5; //oscillations per second
    amplitude = 20;
    decay = 0; //no decay
    seedRandom(index,true); // random seed based on layer index but how does it give each layer a different starting point?
    offset = random(2*Math.PI); // offset amount for this layer
    amplitude*Math.sin(freq*time*2*Math.PI+offset)/Math.exp(decay*time)

  • This is doing the same thing as my inserting of random() in the phase section. All the ornaments are shaking like they have Parkinson’s. I think the problem is that each time the frequency resets, the random seed is spitting out a random number. I only need it to happen once at the beginning of the composition.

    I also have a question about the seedRandom(index); I see it generates a random seed based on layer index but I don’t see how it’s effecting the amplitude formula. Is it generating a different instance for each layer? If so can we get rid of the “offset” variable?

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