RetouchPRO

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


Photoshop Scripting Learning and sharing for all platforms

Auto fill in layer bounding box with color?

Reply
 
Thread Tools
  #1  
Old 10-23-2012, 03:03 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Auto fill in layer bounding box with color?

I would be helpful for me l if there was a script that would take the bounding box for selected layers and fill it with a block of color. Like a "Redaction script"

I sometimes need to send test files other people, but they shouldn't see the actual content of some of the layers (security reasons). And it would take hours to fill up hundreds of layer by hand with a block of color.
Attached Images
File Type: png boundingboxFill.png (14.9 KB, 19 views)
Reply With Quote top
  #2  
Old 10-24-2012, 02:41 PM
Paul R Paul R is offline
Junior Member
 
Join Date: Jan 2010
Posts: 18
Re: Auto fill in layer bounding box with color?

Something like this? ...
Attached Files
File Type: zip Colour selected layers.zip (1.0 KB, 8 views)
Reply With Quote top
  #3  
Old 10-25-2012, 12:50 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Re: Auto fill in layer bounding box with color?

Close! But your script is doing the equivalent of "preserve transparency" then "fill". I need the contents of each layer filled with color — limited by the bounding box of each layer's contents.
Attached Images
File Type: png Screen-Shot-2012-10-24-at-4.33.24-PM.png (9.3 KB, 13 views)
Reply With Quote top
  #4  
Old 10-25-2012, 03:05 PM
Paul R Paul R is offline
Junior Member
 
Join Date: Jan 2010
Posts: 18
Re: Auto fill in layer bounding box with color?

Hope this is better...
Attached Files
File Type: zip Colour selected layers.zip (1.2 KB, 6 views)
Reply With Quote top
  #5  
Old 10-25-2012, 05:44 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Re: Auto fill in layer bounding box with color?

That's amazing! One last itty bitty favor -- would it be possible for the script to use the Foreground color?

Also, it errors out if any text layers are selected. (any way for it to fail elegantly if it runs into a live text layer?)
Reply With Quote top
  #6  
Old 10-25-2012, 06:03 PM
Paul R Paul R is offline
Junior Member
 
Join Date: Jan 2010
Posts: 18
Re: Auto fill in layer bounding box with color?

No problem, text layers are now filled and the foreground colour is used.
Attached Files
File Type: zip Colour selected layers.zip (1.2 KB, 4 views)
Reply With Quote top
  #7  
Old 10-26-2012, 01:54 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Re: Auto fill in layer bounding box with color?

Hi Paul! Maybe you uploaded the old script?

It's still filling layers with black and erroring out if it hits a live text layer.
(I also notice it errors if a Folder is selected)
Reply With Quote top
  #8  
Old 10-26-2012, 02:52 PM
Paul R Paul R is offline
Junior Member
 
Join Date: Jan 2010
Posts: 18
Re: Auto fill in layer bounding box with color?

This now ignores layersets...
Attached Files
File Type: zip Colour selected layers.zip (1.2 KB, 19 views)
Reply With Quote top
  #9  
Old 10-26-2012, 04:04 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Re: Auto fill in layer bounding box with color?

Brilliant! Works like a charm! Thank you so much. You have (actually? literally? practically?) saved me 12 hours of work!
Reply With Quote top
Reply

  RetouchPRO > Tools > Software > Photoshop Scripting


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
Skin smoothing - modification of degrunge fraiseap Photo Retouching 23 07-25-2014 10:41 AM
layer style help ohiojr Photoshop Help 2 03-14-2012 10:05 PM
AIM color space - Gamma 1.00 Ron Photo Retouching 28 09-02-2010 07:48 PM
Several Photoshop Layer Tips DJ Dubovsky Photo Compositing 6 12-05-2006 03:35 PM
Help needed understanding these layers. peejay Photo-Based Art 3 01-16-2004 09:15 PM


All times are GMT -6. The time now is 09:22 AM.


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