Page 1 of 1
How to script color overlay color?
Posted: Sat Aug 20, 2016 5:25 pm
by LJE
I tried:
set coloroverlay of img "logo" to true
set coloroverlay of img "logo" to "255,255,255"
But nothing happens.
Re: How to script color overlay color?
Posted: Sat Aug 20, 2016 5:57 pm
by jmburnod
Hi,LJE
All graphic effects are arrays and you can set each key of this array
Code: Select all
set the colorOverlay["color"] of img "logo" to "255,0,0"
set the colorOverlay["opacity"] of img "logo" to 50
or
Code: Select all
put 255 into tOverlayProp ["opacity"]
put "2,5,18" into tOverlayProp ["color"]
set the coloroverlay of img 1 to tOverlayProp
Best regards
Jean-Marc
Re: How to script color overlay color?
Posted: Sat Aug 20, 2016 7:46 pm
by richmond62
If you look up "
overlay" in the in-built
Dictionary everything is explained.
In fact, to save yourself quite a lot of time, try to make the in-built
Dictionary your first stop every time you have a question
However, it is extremely important to be clear about what you are searching for: