Forum Replies Created

Page 5 of 7
  • Patrick Grossien

    January 22, 2016 at 10:22 am in reply to: Ternary diagram / ternary plot calculations

    Thank you so much Kalle. At least I can follow along the lines of your math, but I couldn’t come up with it myself! 😉

  • Patrick Grossien

    January 22, 2016 at 10:20 am in reply to: Ternary diagram / ternary plot calculations

    “I think that Patrick wants the converse: given a reference triangle and a point in that triangle with comp coordinates [x,y], find the coordinates of the point in the triangle system (barycentric coordinates).”

    Exactly that is what I’m looking for: I want to animate the dot, and I’m looking for an expression that calculates the percentages for A and B at that position.
    Thanks, Xavier.

    Actually it doesn’t really matter how it is set it up, because I could easily change it. I would just have to make sure it fits. So if there’s a workflow that would make it easier to get this going, let me know.

    Right now, the triangle is an imported .ai vector and the easiest way from here would be to use the coordinates of the 3 summits.

  • Patrick Grossien

    January 20, 2016 at 9:45 pm in reply to: sourceRectAtTime doesn’t properly update !?

    OK, I believe I got it:

    L = thisComp.layer(“john.doe@me.com”);
    inP = inPoint;
    r = L.sourceRectAtTime(time-inP,false);
    L.toComp(L.anchorPoint)+[r.left+r.width,r.top+r.height]

    I took the inPoint of the Cursor Layer and subtracted it from “time”.
    I just don’t get why I need to do that and why it needs to be subtracted and not added…

    (both layers have their inPoints at the same point in time. the actual animation of the appearing text starts a few frames after the inPoint)

  • Patrick Grossien

    January 20, 2016 at 9:38 pm in reply to: Ternary diagram / ternary plot calculations

    Thank you so much Kalle,

    I need to test this and see if the math works out, but I’m still missing a piece. As I understand your post, it would check the current X & Y position of the dot and spit out a coordinate, correct? How can I convert that X/Y information into the percentages for A and B?

  • Patrick Grossien

    January 20, 2016 at 9:30 pm in reply to: sourceRectAtTime doesn’t properly update !?

    I found out what was happening. It happens when I slide the layers over so that they start later but the animation for the blinking cursor happens at the beginning of the composition (with no active layers) and not from the point in time, when the actual layer starts. So the whole animation doesn’t offset along with the layers in points.

    I thought “time” would work at the current playhead time. Any insight to this?

    Thanks!

  • Patrick Grossien

    January 20, 2016 at 9:14 pm in reply to: sourceRectAtTime doesn’t properly update !?

    You’re a life safer! Thanks Dan! That’s it.

    I need to wrap my head around this whole fromComp toComp thing somehow….

  • Patrick Grossien

    January 20, 2016 at 7:28 pm in reply to: sourceRectAtTime doesn’t properly update !?

    Thank you all for your responses.

    Now I’m angry at myself, because I haven’t tried it in an empty composition. Weird enough it works fine there, too. Now I gotta figure out what’s wrong in the main comp. Still weird..

    But I’m now having another problem with that expression:

    L = thisComp.layer("john.doe@me.com");
    r = L.sourceRectAtTime(time,false);
    fromComp(L.toComp([r.left+r.width,r.top+r.height]))

    I think I’m having problems with the “fromComp” “toComp” situation. I though this would make it stick to the lower right corner of the text layer but the cursor sticks at the upper left corner of the composition. How would I set this up to make it position with the text layer?

  • Patrick Grossien

    January 19, 2016 at 11:59 am in reply to: expression for length of text layer

    this is weird. I’m using CC2015 and sourceRectAtTime doesn’t update properly for me.

    My text is set up so that it appears over time via an animated slider:

    n=thisComp.layer("john.doe@me.com").effect("Tipp Counter")("Slider");
    showtext=text.sourceText.substr(0,n);

    now I want to attach a blinking cursor to the appearing text at the end.

    L = thisComp.layer("john.doe@me.com");
    r = L.sourceRectAtTime(time,false);
    fromComp(L.toComp([r.left+r.width,r.top+r.height]))

    The value is not being updated over time and the value itself is nowhere near it should be.
    I also checked what happens with the width of sourceRectAtTime and it doesn’t update either when used solo.

    Any insight as to what I’m doing wrong? Or is there a bug I’m missing.

    Thanks!

  • Patrick Grossien

    January 19, 2016 at 11:58 am in reply to: expression for length of text layer

    this is weird. I’m using CC2015 and sourceRectAtTime doesn’t update properly for me.

    My text is set up so that it appears over time via an animated slider:

    n=thisComp.layer("john.doe@me.com").effect("Tipp Counter")("Slider");
    showtext=text.sourceText.substr(0,n);

    now I want to attach a blinking cursor to the appearing text at the end.

    L = thisComp.layer("john.doe@me.com");
    r = L.sourceRectAtTime(time,false);
    fromComp(L.toComp([r.left+r.width,r.top+r.height]))

    The value is not being updated over time and the value itself is nowhere near it should be.
    I also checked what happens with the width of sourceRectAtTime and it doesn’t update either when used solo.

    Any insight as to what I’m doing wrong? Or is there a bug I’m missing.

    Thanks!

  • Thank you, Dan.

    Is there a reason, that “d” isn’t used after being defined?

Page 5 of 7

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