Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to run two different functions in a script (by exiting after running the first function and reopening and running the 2nd one);

  • How to run two different functions in a script (by exiting after running the first function and reopening and running the 2nd one);

    Posted by Saadman Mahdi on October 29, 2016 at 9:09 pm

    Hello Everyone,

    This is my first post in this forum. I have been following creative cow for a while now and the community seems just great!
    My thanks and appreciation go to everyone for all the help. Creative cow has indeed been a great support!

    To make things short, i want to know if there is a way so that my script runs a first part(one function), exits, takes samples and runs the 2nd part(2nd function), in one single script like in a threaded form of some sort (not having to run the two functions separately.)

    Some Details:

    ok, so to explain my problem, i have been writing my first script, which creates a color control null layer.
    The first part of my script, samples and stores the color of the selected layers on a temporary null, and in the 2nd part the a color control is created which takes the original color values of those layers from the temporary null.

    I cant run the script as a whole because sampleimage( ) cant be used inside the script editor. and i want to sample and use the original colors. Right now i have to run the two actions separately.

    It would be great if someone can point me to the right direction,,and thanks a bunch for taking the time to hear me out! Best wishes to everyone!

    Regards
    Shourov

    Saadman Mahdi replied 9 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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