Forum Replies Created

  • I’ve found that this problem doesn’t occur when I import a single psd file, when I remove this line io.sequence = true;

    That way it works fine, I get my comp and the folder with all the layers. But what if I want to import a sequence as comp ?

  • Ok, I’ve been playing with these expressions for hours and it works great but in certain conditions.

    Maybe I’ve started things the wrong way. The problem is the corner pin effect I think. When I want to add round corners to my shape layer in my precomposition, the corner pin effect will of course stretch it all and it looks pretty bad especially when I write long titles.

    I managed to do the scripting again on a shape layer, directly in my main composition. I’m using a rectangle shape.

    Here is a screenshot

    0_creativecow3.jpg

    It works but only on 1 line. And that’s because unlike the corner pin effect, I can’t have the coordinates of my shape layer points and lock the top points while the bottom points could still move vertically.

    I do not wish to take any more of your time but do you think there is a solution for this ?

    //Text layer/sourceText

    if (time < -1) "E" else
    if (time < 0) "É" else value

    //Shape layer/Content/Rectangle 1/Rectangle Path/Size

    L = thisComp.layer(1);
    r1 = L.sourceRectAtTime(-1,false);
    r2 = L.sourceRectAtTime(time,false);

    [r2.width,r1.height]

    //Shape layer/Content/Rectangle 1/Rectangle Path/Position

    content("Rectangle 1").content("Tracé rectangulaire 1").size/2;

  • The hack works really well in one text line and that’s awesome but for some unknown reason (at least unknown to me) it doesn’t work when I write on multiple lines.

    EDIT: Problem solved, just need to remove r1 from lower left and lower right

    I’m breaking down your expressions and learning more about toComp(), fromComp() and sourceRectAtTime() functions.
    There is something I still don’t understand.

    I’ve seen that you used “r.left” and “r.top” to get the extreme left and top positions of the text bounding box. To get the right and bottom values, you used “r.left + r.width” instead of “r.right” (which seems not to exist). That’s my question: why is it impossible to get the extreme right and bottom values of the bounding box directly by using “r.right” or “r.bottom” ?

    Of course, “r.left+r.width” does the job but I’m curious to know why such function doesn’t exist.

    Again, Dan, thank you so much !

  • Wow, it looks so simple…
    It works like a charm thank you so much Dan ! It greatly simplyfies the expressions too.
    I’m going to need some time to break down how you did this but that’s great.

    I have another question though. What if I’d like my lower thirds to have the exact same height wether their texts have accents or not.
    I’ll try to explain.
    In our videos, we usually use a fade transition between sequences. It would be great to have the lower thirds all at the same height, accents or not.
    That would of course mean that in the case of a title with no accents, the background animation would be larger in y and the text would be centered.
    This is what I mean:

    creativecow2.jpg

    The thing is I still want to be able to add lines. Not sure it’s possible.

    Anyway, that’s a really good solution you’ve helped me a lot !

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