Forum Replies Created

  • Joel Corkin

    September 21, 2005 at 7:01 pm in reply to: [expression? script?] Display Project File Name

    Thanks Mylenium, I’ll look into it.

  • Joel Corkin

    September 21, 2005 at 7:01 pm in reply to: [expression? script?] Display Project File Name

    Thanks Mylenium, I’ll look into it.

  • Okay, first, sorry for so many follow-up posts, but I figured out a way to make this work while disregarding certain other layers, like other text layers that span the whole comp for example.

    I added &&!L.hasParent into Dan’s code and then created a null layer with visibility off, which I used as the parent to whatever other text layers I want to add to the comp. This way the other text layers can span the comp without interfering with the footage name display.

    The modification of Dan’s code is below. If anyone has a better way than this, please post it.

    txt = “”;
    for (j = 1; j <= thisComp.numLayers; j++){ if (j == index) continue; L = thisComp.layer(j); if (! (L.hasVideo && L.active &&!L.hasParent)) continue; if (time >= L.inPoint && time < L.outPoint){ try{ txt = L.source.name; }catch(err1){ txt = L.name } break; } } txt;

  • Okay, first, sorry for so many follow-up posts, but I figured out a way to make this work while disregarding certain other layers, like other text layers that span the whole comp for example.

    I added &&!L.hasParent into Dan’s code and then created a null layer with visibility off, which I used as the parent to whatever other text layers I want to add to the comp. This way the other text layers can span the comp without interfering with the footage name display.

    The modification of Dan’s code is below. If anyone has a better way than this, please post it.

    txt = “”;
    for (j = 1; j <= thisComp.numLayers; j++){ if (j == index) continue; L = thisComp.layer(j); if (! (L.hasVideo && L.active &&!L.hasParent)) continue; if (time >= L.inPoint && time < L.outPoint){ try{ txt = L.source.name; }catch(err1){ txt = L.name } break; } } txt;

  • Perhaps there is some way tell AE to do either of the following in the case of wanting to use additional text layers in your comp:

    – Disregard any other layer if it is a text layer
    or
    – Disregard all layers above the layer to which you are applying this particular sourceText code.

    Any thoughts?

  • Perhaps there is some way tell AE to do either of the following in the case of wanting to use additional text layers in your comp:

    – Disregard any other layer if it is a text layer
    or
    – Disregard all layers above the layer to which you are applying this particular sourceText code.

    Any thoughts?

  • I figured out that this code only works if you have one text layer in your comp. Anyone know how it could work while other text layers are present? Dan?

    Thanks!

  • I figured out that this code only works if you have one text layer in your comp. Anyone know how it could work while other text layers are present? Dan?

    Thanks!

  • Sorry, I am trying to get this to work, but am having some trouble. Don’t I just need to paste Dan’s code into an expression for the SourceText property of a text layer?

  • Sorry, I am trying to get this to work, but am having some trouble. Don’t I just need to paste Dan’s code into an expression for the SourceText property of a text layer?

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