Forum Replies Created

  • Mike Headley

    February 24, 2012 at 12:45 am in reply to: attaching an object to an updatable string of text

    Eureka, that works! Thanks again for the help. This expression is really going to save me a lot of time.

    Cheers,
    -Mike H.

  • Mike Headley

    February 24, 2012 at 12:22 am in reply to: attaching an object to an updatable string of text

    Dan,

    That did the trick! Thank you so much for the support. I do have a followup question, though. While the expression seems to be working, the solid layer is now overlapping the text layer even as I add or remove text. It actually seems that the left edge of the solid is aligned to the left edge of the textbox. I also can’t move the solid with the selection tool once the expression is activated. Is there a way for me to manually adjust the position of the solid within the expression? I was able to find a workaround by applying the expression to a null object, then parenting my solid to the null.

    Thanks again,
    -Mike H.

  • Mike Headley

    February 23, 2012 at 11:47 pm in reply to: attaching an object to an updatable string of text

    Hey Dan,

    Thanks for the quick reply. I surrounded the layer name with quotes, but I’m still getting the same error message.

    -Mike H.

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

  • Mike Headley

    February 23, 2012 at 5:30 pm in reply to: attaching an object to an updatable string of text

    Hey all,

    Long time reader, first time poster, here. I’m currently trying to apply the first expression listed (for right justified text) to the position of a solid layer. However, when I click away from the expression field after entering the script I get this error message:

    ———————————-
    After Effects warning: Expected: ;
    Expression disabled

    Error occurred at line 3.
    Comp: ‘Comp1’
    Layer: 1 (‘White Solid 1’)
    Property: ‘Position’

    ———————————-

    I’m currently using a test comp while I try to figure this out. That’s why the above comp and layer names are generic. I received the same message within my actual project as well. I’m pretty inexperienced with expressions beyond the basics, so please forgive me if this is something really simple. Any support is greatly appreciated.

    Thanks in advance,
    -Mike H.

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

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