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

Script to find/replace text in layer names?

Reply
 
Thread Tools
  #21  
Old 10-16-2012, 01:26 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Re: Script to find/replace text in layer names?

Thank you very much. I'll report back if there's any progress.
Reply With Quote top
  #22  
Old 10-23-2012, 02:50 PM
Navstar Navstar is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Re: Script to find/replace text in layer names?

Good news! A fantastic Illustrator coder by the name of CarlosCanto on the Adobe boards was able to make an Illustrator version!

Just a caveat: Illustrator doesn't support "selected layers" like Photoshop. So this will rename any *visible* layers. Don't want a layer renamed? Turn off the visibility eyeball.
Attached Files
File Type: zip Batch Rename Visible Layers ILL.jsx.zip (1.8 KB, 106 views)
Reply With Quote top
  #23  
Old 07-06-2013, 05:31 PM
robinsonsampa robinsonsampa is offline
Junior Member
 
Join Date: Jul 2013
Posts: 1
Re: Script to find/replace text in layer names?

Quote:
Originally Posted by Navstar View Post
Good news! A fantastic Illustrator coder by the name of CarlosCanto on the Adobe boards was able to make an Illustrator version!

Just a caveat: Illustrator doesn't support "selected layers" like Photoshop. So this will rename any *visible* layers. Don't want a layer renamed? Turn off the visibility eyeball.
Really thanks for that!!!
Reply With Quote top
  #24  
Old 07-16-2013, 01:45 PM
dvida dvida is offline
Junior Member
 
Join Date: Jul 2013
Posts: 1
Re: Script to find/replace text in layer names?

Was wondering if anyone has a script for find and replace text in layers for Illustrator CS6? I downloaded that script from CarlosCano but it's a batch script to change all layers. I'd like to find and replace certain words in my layer names.
Thanks in advance for any help!
Reply With Quote top
  #25  
Old 07-25-2013, 07:13 AM
artelogic artelogic is offline
Junior Member
 
Join Date: Jul 2013
Posts: 1
Re: Script to find/replace text in layer names?

Maybe this could be also interesting for you:

psdmind.com

You cannot change layer names with this tool, but you can search for a layer name or text on a text layer in multiple files at once.
Reply With Quote top
  #26  
Old 10-17-2013, 03:37 PM
doubletakest doubletakest is offline
Junior Member
 
Join Date: Oct 2013
Posts: 2
Re: Script to find/replace text in layer names?

Just confirmed that the script works in CS6...THANK YOU CarlosCanto, you've just saved me sooo much time.
Reply With Quote top
  #27  
Old 10-25-2013, 12:23 PM
johnmford2 johnmford2 is offline
Junior Member
 
Join Date: Oct 2013
Posts: 3
Re: Script to find/replace text in layer names?

Quote:
Originally Posted by Paul R View Post
Ok Paul, here is something for you to test, I have also added a checkbox so that you can create a snapshot.
For general information, this script requires Photoshop CS3 or better.
Thanks for creating such a great script. I'm using this with CS6.

Can you set an option that allows you to only affect folders at certain levels (parent, children, sub children)?

My use case is that I use slicy, which request you to place an +@2x at the end of a file you'd like to have exported as a graphic for iPhone4S+. The tool currently will affect all layers within a folder set. I'd like to see about having the option to only affect the parent folder instead.
Attached Images
File Type: png Untitled-2.png (45.0 KB, 16 views)
Reply With Quote top
  #28  
Old 10-25-2013, 12:26 PM
doubletakest doubletakest is offline
Junior Member
 
Join Date: Oct 2013
Posts: 2
Re: Script to find/replace text in layer names?

I'm also curious if there's a way to rename objects/sublayers. I can't move objects out of layers apparently and into their own layer (like photoshop) so I'm stuck renaming each object/sublayer individually again ;/
Reply With Quote top
  #29  
Old 10-25-2013, 12:33 PM
johnmford2 johnmford2 is offline
Junior Member
 
Join Date: Oct 2013
Posts: 3
Re: Script to find/replace text in layer names?

Hmm

OK - as an extra heads up, luckily, I had named all of my folders with .png at the parent level.

I filtered out the layers menu to look just for .png, which displayed all of the folders (but not the contents within them).

Then I ran the script on those folders only, and it worked.

No need for you to recode! Although I still think this it would be a great feature no less...

Thanks!
Reply With Quote top
  #30  
Old 11-08-2013, 10:06 AM
MrVx MrVx is offline
Junior Member
 
Join Date: Nov 2013
Posts: 1
Re: Script to find/replace text in layer names?

Wow, Paul R's scripts are real gems. Combined with Captain Awesome's script (http://blog.kam88.com/en/group-layer...ng-script.html), I was able to quickly perform the task I wanted: delete first 4 characters of previously-sequentially-named-layers-that-were-now-outdated, then prepend a new number sequence to the current layer names (I wanted to keep them, but re-number them based on the new stack order). Thanks!
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
Tutorial 05: Converting a Color Image to Black and White grayscale BW DannyRaphael Photo-Art 101 17 05-22-2011 05:55 PM
help with german Photoshop commands please pure Photoshop Help 9 06-21-2010 03:33 PM
Layer Tutorials..again? zip022 RP Tutorials 21 11-18-2004 11:10 PM
select shape Peg Hidden Power Support 7 08-29-2004 07:10 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 07:02 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