Forum Replies Created

Page 2 of 6
  • Peter Zeet

    May 23, 2019 at 9:18 pm in reply to: offset start on formula deformer

    oh! my bad! I should have been more specific!

  • Peter Zeet

    May 23, 2019 at 9:01 pm in reply to: offset start on formula deformer

    hey!
    yes, here it is!
    Its very simple, just a plane with the formula and the decay snippet on it

    13367_decaywave.c4d.zip

    many thanks!

  • Peter Zeet

    May 23, 2019 at 7:20 pm in reply to: offset start on formula deformer

    Thanks Jim for the ideas!
    Now I that have been messing around with adding decay to make it like a water drop decaying to 0, plus your fantastic tops to make the formula on/off, the issue now, is that that formula seems to be generated at frame zero, so none of the options mentioned below seems to work (even animating the enabled status didn’t make the trick), so I’m back again to trying to mess with the t value to make it not start until a desired frame.

    This is the formula I’m playing with
    and my adaptation is (40*Sin(((u*6)-t*1.1)*pi*2.0)/exp(t*1-u))

    which is a variation of some of this Dan Ebbert’s decaying sine wave gold snippet:
    amp*Math.sin(t*freq*Math.PI*2)/Math.exp(t*decay)

    A side solution may be linking the t value in the exp(t*1-u) so its always 0 until I say to be 1 (or some non zero value)
    But it should be a better and simpler solution, I guess?

  • hi!
    after some attempts, I think I couldn’t figure it out properly… any ideas on this? I’m a bit lost
    super thanks!

  • oh! thanks!
    That works, but now I have a side effect… from here

    after running the script, now it seems it is not removing the old markers anymore

    mmm maybe I should add another removal?

  • hi!
    sorry to bring this old post up
    I’m trying to figure out how to adapt the expression to work with scale, so the layers can keep they relative scale, but no luck at all…

    So if a layer has a scale 75%, and the leader layer goes from 0 to 90, the follower layer goes to 75% as it maximum scale, and not to 90, or 90+value, etc

    Maybe adding a linear() may work? or adding some scaleFactor? I thought it would be a quick one, but I’m a bit slow today

    thanks!

  • Peter Zeet

    January 9, 2019 at 12:44 am in reply to: end trim to reveal motion path dinamically created

    any ideas?
    I found this super old post, where maybe there is a possible way, it is about calculating the total distance of an animated motion track.
    https://forums.creativecow.net/archivethread/2/540727#540907

    I think that distance can be used to measure the movin lead layer and then substract to the position til the end somehow?
    Here is the code Dan Ebberts and Filip Vandueren came up with:

    d = 0; //distance traveled
    startPos = position.value_at_time(0);
    endPos = startPos;
    f = 0;

    precision=2; // doubled precision

    while (f <= time/(this_comp.frame_duration/precision)){
    startPos = endPos;
    endPos = position.value_at_time(f*this_comp.frame_duration);
    d += length(startPos,endPos)
    f=f+(1/precision);
    }
    d

    thanks!

  • hi!
    I have a question, but it’s probably pretty much complicated than I was thinking:
    how could I add a simple duration when it goes from 100 to 0? so its like a simple fade every time)
    I was trying to figure out with a linear function, but I don’t have idea how to know the time the value is 100 changing to 0, to add the duration to that value

    thanks!

  • fantastic!! I was coming with a super ugly and dirty solution, but this one is neat and simple! thaks!

    I have a related question, but don’t know if it can make the previews take much longer as for the precalculations (and speaking about a lot of layers)

    so: if I add a checkbox so if it is clicked it gets rid of the markers actions and let me use muy own keyframes and vice-versa? so if its not clicked it would use the code before, but getting totally rid of any manual keyframing?

  • Peter Zeet

    July 25, 2017 at 10:10 am in reply to: layer marker triggers upscale-hold x frames-downscale

    ah
    there is a ball, with a scale of [100,100], and when there is a marker, it goes from [100,100] to [80,80], stays at [80,80] during some frames, and then it goes back to [100,100]
    giving a holding time of, per example .5 sec
    so it would be:
    100% scale ———–*marker* 80%scale —- holding time— 80%scale—-100% scale ————-*marker*etcetc——–

Page 2 of 6

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