Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Addlight scripting question

  • Addlight scripting question

    Posted by Rutger on October 14, 2007 at 5:03 pm

    I am trying to modify an existing script from http://www.motionscript.com such that lights are automatically added for each vertex of a selected mask. I got this to work.
    However, I am struggling with the Addlight method. I am using the official scripting guide, but I cannot find the answers in there.

    1. I don’t understand why the addlight only has an x and y coordinate, why isn’t there a z-coordinate? it seems that I can set it later with myLightLayer.position.setValue([x,y,z]);

    2. How do I tell the script that I want either a pointlight or a spotlight?

    3. How do I use the Setvalue method to change the point of interest? (I tried myLightLayer.anchorpoint.setValue([x,y, 0]); , but this does not seem to work.

    4. I also use Lux, and if I use the default orientation of [0,0,0] for each light there is a visible square solid over every single light, I resolved it by changing the orientation to [0,0.1,0], but why do I see a solid over my lights, anyone seen this problem as well?

    Thanks,

    Rutger

    Rutger replied 18 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 15, 2007 at 7:50 pm

    Sorry, not much useful info here.

    1. I don’t know why they did it that way.

    2. I don’t think you can.

    3. Try this:

    myLight.transform.pointOfInterest.setValue([x,y,z]);

    4. Haven’t seen the problem, but I don’t think I’ve ever tried scripting Lux.

    Dan

  • Rutger

    October 17, 2007 at 12:17 am

    Thanks Dan,

    point of interest works now as well.

    Rutger

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