Page 1 of 1
Create 50% grey solid
Posted: May 8th, 2013, 12:54 pm
by scribling
How do I specify the color of the solid in script?
I've got everything else covered except the color.
Re: Create 50% grey solid
Posted: May 10th, 2013, 10:03 am
by Paul Tuersley
If you mean when adding a new solid:
LayerCollection addSolid() method (page 98 of CS6 scripting guide)
app.project.item(index).layers.addSolid(color, name, width, height, pixelAspect, duration)
color - The color of the solid, an array of three floating-point values, [R, G, B], in the range [0.0..1.0].
To alter an existing solid:
SolidSource object (page 179 of scripting guide)
app.project.item(index).mainSource
SolidSource color attribute
solidSource.color
Description
The color of the solid, expressed as red, green, and blue values.
Type
Array of three floating-point values, [R, G, B], in the range [0.0..1.0]; read/write.
Re: Create 50% grey solid
Posted: May 10th, 2013, 2:36 pm
by scribling
Yes! It took a few tries but it got it working. The values that work are (0.5, 0.5, 0.5)
Thank you!