Mobile app version of vmapp.org
Login or Join
Candy945

: Gradual opacity decrement using Action in photoshop I am trying to create an action in photoshop which duplicate the selected layer and decrease its opacity 0.5 less than the selected layer.

@Candy945

Posted in: #Actions #AdobePhotoshop #PhotoshopScripting

I am trying to create an action in photoshop which duplicate the selected layer and decrease its opacity 0.5 less than the selected layer.

I tried to record action but its always sets fixed opacity which was at the time of recording action.

Do anyone have idea on achieving above thing, please help me.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy945

2 Comments

Sorted by latest first Latest Oldest Best

 

@Murray976

I don't think you can achieve that using Actions, your best bet is creating a Script for that. You can use purely Script for this, but if you still want to incorporate Actions into it (as the trigger), you can set the Action to use a Script after duplicating the current layer.

Open up a text editor, give it any name you want (the Script's name is the same as the filename), and paste this in:
#target photoshop

app.activeDocument.activeLayer.opacity = app.activeDocument.activeLayer.opacity / 2;


Save it as a .js or .jsx in your Scripts' folder (X:~AdobeAdobe Photoshop XXPresetsScripts), and you can select Insert Menu Item from the Action menu to insert the script after the duplicate action.

10% popularity Vote Up Vote Down


 

@Nimeshi706

Assuming you want a half of the previous opacity:

Go to the new layer and wipe the whole area once with a big solid eraser that has opacity=50%

The drawbacks:


permanet change, the opacity slider cannot take it back
works only for bitmap image layers


Other possiblities:


add a 50% grey layer mask, apply it as you remove the mask or
have originally a solid white layer mask, reduce the brightness of the mask 50% in the new layer


The last one is the most undestructive method and it applies also with adjustment layers

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme