How do I specify the color of the solid in script?
I've got everything else covered except the color.
Create 50% grey solid
Moderator: byronnash
-
- Posts: 704
- Joined: June 5th, 2004, 7:59 am
- Location: London, UK
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.
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.