Forum Replies Created

  • John Donley

    October 3, 2011 at 5:30 pm in reply to: How do I add Layer Styles to a Layer with script?

    I’m having the same trouble, but Im trying to use “inner shadow” which does not have an Effect equivalent.

    I can set Layer Style values if that layer style is already turned on in the gui, but I cant figure out how to turn on any layer styles.

    If I try to set a value on a layer style that has not been enabled by hand it gives me an error “Can not “set value” with this property, because the property or parent property is hidden”

    But if I set that layers style to enabled I get another error “Can not set enabled on this property because canSetEnabled is false”, but canSetEnabled is read only, so I have no idea how to turn on the layer style.

    Any thoughts?

    //This will change the opacity of the inner shadow on a layer with inner shadow turned on already
    var layer_1 = test_comp.layer(1)
    layer_1.property("Layer Styles").property("Inner Shadow")("Opacity").setValue(10)

  • John Donley

    May 21, 2010 at 6:52 pm in reply to: pixel alpha value?

    k, thanks.

    John

  • John Donley

    May 21, 2010 at 6:37 pm in reply to: pixel alpha value?

    it samples 500 x 1 px across the top, sides and bottom. I have also written a Pixel Bender plugin that scans the image for alpha, and puts a red dot in the corner if it finds any. then I tried to use the sampeImage to see if that pixel is red, but that gave me inconsistent results.

    So, there is no way to check an images color value directly?

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