Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Kay Bader on July 12, 2008 at 4:57 pm

    hello,

    i am trying to convert a video effect i wrote in processing (java-based) to after effects.

    i dont know what after effects scripting is capable of, since i found it to be very bad documented.

    here is a list of the things i need after effects script to do in order to get my effect working:

    – detect and return the color of a specified pixel
    – detect if a specified pixel is alpha channel
    – draw lines with a function like this: line(startX,startY,endX,endY)

    are those things possible?

    i guess there might be a way to work around this line stuff with the addLayer function, but that would be pretty unelegant, i think.

    if anyone knows a solution for any of the listed issues would be great

    thank you

    Dan Ebberts replied 18 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    July 12, 2008 at 5:19 pm

    To get at a pixel’s color and alpha data, you’d have to have your script apply the sampleImage() expression to a layer and then have the script read the results.

    For the drawing part, your script could create a mask/path and then apply the Stroke effect to it.

    Dan

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