Forum Replies Created

  • Kim Nielsen

    November 23, 2010 at 8:13 am in reply to: attaching an object to an updatable string of text

    At some point.
    Someone gotta collect all the nuggets of gold you create here on this board.
    This is amazing, and I can’t imagine that it wouldnt be very useful to everybody who works with templates and large quantities of dynamic text.

    Thank you, thank you, thank you.

  • Kim Nielsen

    November 22, 2010 at 9:48 pm in reply to: attaching an object to an updatable string of text

    Heh!

    Well shit then I am officially out of luck.

    1. Moved the anchorpoint to the bottom of the text layer, but since the content of this varies it doesn’t place itself correct in relation to L.

    2. Tried this aswell, but ran into the same problem as above. It defeats the purpose, since the content of the iii layer differs and the hardcoded value doesn’t accommodate this.

    Hell… allright I guess I will just have to deal with this manually. the lower extend of the layer should always be the same of amount of space from the comp edge… But I guess thats not the obstacle, meh.

    Thanks for trying Dan, I appreciate it.

    😀

  • Kim Nielsen

    November 22, 2010 at 11:37 am in reply to: attaching an object to an updatable string of text

    Hi again Dan,

    Let me try and explain in pictures:
    This is what happens now:
    https://dl.dropbox.com/u/11798518/LI.jpg

    Right now the top of
    iiiii places itself at the top of L
    I want this to happen:

    https://dl.dropbox.com/u/11798518/IL.jpg

    The bottom i to place itself at the top of L
    I just can’t get this to work, Ive been messing around/trying to combine and change the script for hours now.I just can get it to register the bottom of I.

  • Kim Nielsen

    November 20, 2010 at 11:48 pm in reply to: attaching an object to an updatable string of text

    Hey Dan,

    I am not sure if I am reposting my former message, but here goes.
    Pardon me if I didn’t explain it enough in my former message. English is my second language… and code is probably my 1000th language. If not something almost as alien.

    Well yeah anyway your code did exactly the opposite of what I tried to convey.
    What happens now asfar as I understand is:

    “I” places itself at the bottom of “L”

    I wanted the bottom of “I” to place itself at the top of L

    (I am trying to make a text stay 200px away from the bottom edge of my comp. No matter long the text)

    L = thisComp.layer("Your Text Layer");
    for (i = thisComp.height; i >= 0; i--){
    temp = L.sampleImage([thisComp.width/2,i],[thisComp.width/2,0.5],true,time);
    if (temp[3] > 0) break;
    }
    [value[0],i]

  • Kim Nielsen

    November 20, 2010 at 11:33 pm in reply to: attaching an object to an updatable string of text

    Sorry I am not a native speaker, Ive probably been vague.

    What I try is exactly the opposite. I want the bottom of the text that is being moved to attach itself to the top of the non-moving text.

    So I want the bottom of L to position itself on the top of I

    L = thisComp.layer(index+1);
    for (i = thisComp.height; i >= 0; i--){
    temp = L.sampleImage([thisComp.width/2,i],[thisComp.width/2,0.5],true,time);
    if (temp[3] > 0) break;
    }
    [value[0],i]

  • Kim Nielsen

    November 20, 2010 at 9:11 pm in reply to: attaching an object to an updatable string of text

    Hi Dan,

    Currently trying to figure out how to do this on the y axis instead of X.

    Currently I have textfield(A) with a variable length in the y axis. I need to somehow make sure that the BOTTOM of textfield(a) stays fixed to textfield(b).

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