RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting

Notices

Photoshop Scripting Learning and sharing for all platforms

Reply
 
LinkBack Thread Tools
  #1  
Old 06-21-2005, 06:58 PM
Junior Member
 
Join Date: Jun 2005
Posts: 4
script to capture layer names...

Has anyone ever heard of a script that takes the names of all the layers and layer sets and puts them in a text file (or something else that would let me take it elsewhere, like a text layer or clipboard)?

Scripting is a little over my head, but such capability would be quite useful to me. Anyone seen this?

Russell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 06-21-2005, 07:13 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goiânia, Brazil
Posts: 1,549
Hi there, Russell - wlecome to RetouchPRO

This layer thing shouldn't be too difficult.
Assuming that you are using Photoshop - which version do you have? 7, CS(2)?

(scripts aren't compatible between 7 and CS)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 06-22-2005, 11:48 AM
Junior Member
 
Join Date: Jun 2005
Posts: 4
I'm currently using CS 1.

I know that if I were only interested in the names of layers, I could output each layer as a file using a script or ImageReady, and just copy the names in the list of files in the destination folder (OSX), but I need the layer set names as well. Having the names of the layers indented under the names of the layer sets would be a bonus.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 06-22-2005, 03:49 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goiânia, Brazil
Posts: 1,549
OK - should be interesting. I've got it sketched out, try and finish it tonight.

I have 7.0 and CS2. I believe CS2 is pretty compatible with CS1 - we'll soon find out!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #5  
Old 06-22-2005, 09:41 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goiânia, Brazil
Posts: 1,549
This is what I've got so far.

Got a bit detoured into doing a general layers print-out, and haven't done the Layers Sets yet.
There's an example textfile in the zip.

Attached Files
File Type: zip Layers_to_Textfile.zip (1.4 KB, 35 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #6  
Old 06-23-2005, 10:40 AM
Junior Member
 
Join Date: Jun 2005
Posts: 4
Hey, nice work!

The script worked great so far. The file I tried it on contained 67 layer sets, all of which were labeled neatly in the resulting text file. I'm anxious to see it work with the layers within the sets. Thanks!

Russell

ps - nice touch denoting the blending modes

Last edited by moiremusic; 06-23-2005 at 11:23 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #7  
Old 06-23-2005, 11:37 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goiânia, Brazil
Posts: 1,549
Glad you approved. ... and also relieved that CS1 and CS2 are compatible.

The Layer Sets are going to need some sort of recursive programming - to avoid having to write a new bit of program for each level.
Going to be an interesting challenge.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #8  
Old 06-23-2005, 02:06 PM
Junior Member
 
Join Date: Jun 2005
Posts: 4
Correct me if I'm wrong, but aren't the nested layer sets limited to 5 set deep? Has this changed in CS2?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #9  
Old 01-25-2007, 04:33 AM
Junior Member
 
Join Date: Jan 2007
Posts: 1
Re: script to capture layer names...

hi,

i tred to download teh script, but the zip file seems to be corrupted. can you post it again?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #10  
Old 01-25-2007, 03:49 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goiânia, Brazil
Posts: 1,549
Re: script to capture layer names...

dbdbdbdb , I think the problem is at your end. Try again.
I downloaded without problems.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #11  
Old 09-16-2008, 04:12 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2
Re: script to capture layer names...

"The Layer Sets are going to need some sort of recursive programming"

Any luck getting this script to recognize layers within groups/sets? Otherwise it works great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

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 On
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 13 06-03-2008 11:35 AM
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
Screen, Multiply Explained... dpnew Hidden Power Support 3 12-28-2003 12:46 PM


All times are GMT -6. The time now is 01:34 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 Doug Nelson. All Rights Reserved




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51