Script to add particular swatch as roll over effect to a button

Explorer ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

Hello everyone,

 

I have to add roll over effect to alot of buttons. And the roll effect includes adding certain swatch and change its opacity to 25%.

 

Ideally, effect of any simple greyish tint (with gradient) when cursor hover over would work. But since I couldn't find anything built-in, I created a new swatch of grey color with gradient and then changing it opacity to 25% works perfect for me.

 

Now I need script to add that swatch with certain opacity as roll over effect to buttons.

 

Thanks in advance!

TOPICS
Scripting

Views

43

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

I found this partial answer:

https://community.adobe.com/t5/indesign/js-buttons-make-states-rollover-and-click-available/td-p/271...

But it got me to thinking that it should be included in an Object Style (as a future feature enhancement).

Mike Witherell

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines