Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

JavaScript Create Opacity Mask?

New Here ,
Aug 14, 2013 Aug 14, 2013

I am looking for a way to create an opacity mask through JavaScript. My program has the correct items selected, I just can't seem to find any documentation about creating an opacity mask.  If I run the program as is, I just need to click one button ( "Make Mask") and the desired process is completed. Of course I would love to find a way to do this programmatically. 

If I cannot access Opacity mask, is there a way to manually do this through grouping and blending or something?

Here is a pic of what I want to do...   Thanks for the help

opacitym.png

TOPICS
Scripting
1.9K
Translate
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
Mentor ,
Aug 14, 2013 Aug 14, 2013

Sadly like many things, I don't think it's available via scripting, unless something has changed with the CC version which I doubt.

Translate
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
New Here ,
Aug 14, 2013 Aug 14, 2013

Yikes! what I am trying to do is make a program that creates a simple reflection of an image. In the UI, I was just copying the image> reflecting it > shifitng the reflection down > creating a white to black gradient rectangle over the reflection> then creating an opacity mask of the reflection and the gradient.

The very last step in the program is the opacity mask, ARG! Hehe oh well.

I am going to try to think about a work around, maybe adjusting the opacity of the reflection and the gradient seperately.

Anyway, if anyone else has any info on scripting an opacity mask, lemme know!

Thanks

Translate
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
Community Expert ,
Aug 14, 2013 Aug 14, 2013

I haven't found a way or seen anyone working with opacity masks either...

if you could record "Make Opacity" as an action, you could then play such action via Javascript.

Translate
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
Community Expert ,
Aug 14, 2013 Aug 14, 2013

Might it be possible with Graphic Style?

Translate
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
Mentor ,
Aug 14, 2013 Aug 14, 2013

I too was wondering about an action or graphic style, each might be a viable option, good call gentleman.

Translate
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
Valorous Hero ,
Aug 20, 2013 Aug 20, 2013
LATEST

Here is a silly idea:  duplicate your image, reflect it over the bottom downwards, duplicate it 10 times and set the opacity of each piece at increments of 10 from 100 to 0, then calculate a vertical distance and use to produce 10 clipping masks, each one over the 10 images respectively, to slice them up and create a rugged fading reflection effect.  BUT, just when you think it can get no better: the masterstroke!  Group the new images together and stick a pre-made Gaussian Blur style on that sucker!  Limitations be damned!

Oh yes, I actually have a screenshot of this beauty right here, for brewity only seen in 5 steps in linear progression...  Totally scriptable.

but only if one is completely desperate.

Screen Shot 2013-08-20 at 4.45.40 PM.png

Translate
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