RetouchPRO

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Software Photoshop, Lightroom, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

Targeted layer visibility toggle script

Reply
 
Thread Tools
  #1  
Old 11-08-2013, 03:50 PM
infinityspiral infinityspiral is offline
Junior Member
 
Join Date: Aug 2013
Location: Bettendorf, IA
Posts: 4
Targeted layer visibility toggle script

First post here so sorry if this isn't in the right section. I wrote a few scripts for Photoshop that make my workflow a little easier. The script will take the currently selected layer/group and make it hidden. It also marks it with a "[T]" for toggle. Like this:

Code:
Layer0
Layer1 [T]
Layer2
Layer3
If I now select Layer3 I can run this script and Layer1 will now be shown. If I run the script again Layer1 hides... and so on as many times as I run the script. Layers can be named whatever you want, this is just my example.

There's also a "LayerToggleClear" script file that when you run it, remove the [T] so you can target another layer for toggling.

Why this is useful
I use this for skin retouching where I'll have a layer towards the top that brings up the contrast on the reds. On my 50% gray layer where I dodge/burn I can keep working with and without the contrast just by running the script. You can toggle visibility on layers that aren't currently selected so you can keep on painting or whatever.

That's clunky
Yeah if you use it by doing the file>scripts>run script way. If you instead map the script to an action with a keystroke, it's very fast. Right now for me F8 runs the main toggle script and SHIFT+F8 runs the clearing script.

Limitations
It loops through all your layers that aren't in a group first, then moves on to the groups and goes top to bottom. The loop stops if a toggle is found. Layer5 will be found less quickly than Layer0 in the case below. This may be slower the more groups within groups that you have.

Code:
Layer0
Group0
  Layer1
  Layer2
Group1
  Layer3
  Layer4
  Group2
    Layer5
Attached Files
File Type: zip LayerToggle.zip (1.7 KB, 6 views)
Reply With Quote top
Reply

  RetouchPRO > Tools > Software


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Layer / grading help jonathan_k Photo Retouching 6 02-22-2012 01:15 PM
Creative Portraits: Sharp Dressed Man DannyRaphael Turning Portraits into Digital Sketches, Oils, Watercolors 27 01-04-2007 04:14 PM
Several Photoshop Layer Tips DJ Dubovsky Photo Compositing 6 12-05-2006 03:35 PM
Graduated layer mask description. Gary Richardson Photo Compositing 2 06-10-2006 02:38 PM
select shape Peg Hidden Power Support 7 08-29-2004 07:10 PM


All times are GMT -6. The time now is 06:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved