Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 6th, 2014  |  syntax: None  |  size: 0.30 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var doc = app.activeDocument;
  2. var layerRef = doc.layers.getByName("Modular Grid");
  3. layerRef.positionLocked = true;
  4.  
  5. if (layerRef.fillOpacity >= 100) {
  6.     layerRef.fillOpacity = 0;
  7. } else if (layerRef.fillOpacity <= 0) {
  8.     layerRef.fillOpacity = 40;
  9. } else {
  10.     layerRef.fillOpacity = 100;
  11. }