Forum Replies Created

  • Thomas Patrick

    March 14, 2019 at 9:11 pm in reply to: Comp And Layer Replacement Script

    Thanks for the tips!

    I hope to nosedive into your youtube videos soon…..

  • Thomas Patrick

    March 14, 2019 at 8:58 pm in reply to: Comp And Layer Replacement Script

    Tomas you’re a legend!

    That line did the trick! I’m going to sit down and go through this code now to figure out what I still need to learn…

    Thanks for everything!

    Maybe one day I’ll be good enough to help you out of a jam too!

    Thanks Again,
    Tom

  • Thomas Patrick

    March 14, 2019 at 8:48 pm in reply to: Comp And Layer Replacement Script

    Hi Again,

    Yes, my “REPLACED” comps will be more complex than the screenshot with a solid, some .movs, and some still images.

    For testing purposes however I’m using exactly what you see in the screenshot and still coming up with the same error:

    “Unable to execute script at line 22. null is not an object”

    Any ideas?

  • Thomas Patrick

    March 14, 2019 at 7:32 pm in reply to: Comp And Layer Replacement Script

    Hi Again Tomas,

    Thanks again for taking a crack at this!

    Unfortunately the code may still need some modification. When running it from the Scripts menu I get the following error:

    “Unable to execute script at line 22. null is not an object”

    In the script editor this is line 22:
    “if (curLayer.source.typeName == “Composition”) {”

    Is there good way to troubleshoot this?

    Thanks for any and all replies!

    Tom

  • Thomas Patrick

    March 14, 2019 at 5:18 pm in reply to: Comp And Layer Replacement Script

    Hi Tomas!

    Yes, for my situation those folder names will remain constant. My “COMPS” folder currently has subfolders (for each day eg MON, TUE, etc.) but if that is the source of my problems I could rearrange that….

    I’m still unsure what’s broken in my script but I’m definitely open to new and better ways to accomplish the task!

    Thanks for the interest and the quick reply!

    Tom

  • Thomas Patrick

    December 11, 2017 at 5:17 pm in reply to: Replacing layers with comps Script

    Hi There,

    I’m trying to do something similar to Igor but still having difficulty…

    I need to replace old comps with newer comps as layers in multiple compositions. I’ve included an annotated screenshot to explain exactly what I mean. Essentially I’ll have a folder full of “_OLD” comps and another folder full of “_NEW” comps. I’ll also have a folder full of comps that contain the “_OLD” comps as layers.

    What I’m trying to do (with varying degrees of success…) is replace the “_OLD” layers with the “_NEW” layers inside the “REPLACED” comps. But I’ve been doing it by index and running into problems when the “REPLACE” comps have additional layers.

    I think I need to:
    -loop through the all of the “REPLACED” comps (Currently in a MON folder) to look for layerscomps the contain “_OLD”
    -For layers that contain “_OLD” check to see if there is a corresponding “_NEW” comp in the “NEW_COMPS” folder
    -If the layer exists, replace the “_OLD” layer in the “REPLACED” comp, else alert(“CANT FIND COMP x…”)

    I think this logic would replace everything correctly but my JS is apparently atrocious…

    Thanks for any help/tips!

    Tom

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