+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Newbie
    Join Date
    Dec 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .txt file for text

    I was wondering if anyone knew how to make a .file in photoshop use the text from a .txt file. I thought I saw this before, but I am unsure how to do it.

    It is used when you have a button, and you want to constantly change the text on the button, you just change the txt file.

    Any ideas?

  2. #2
    Power User
    Join Date
    Dec 2002
    Posts
    248
    Thanks
    0
    Thanked 2 Times in 2 Posts

    .txt file for text

    I'm not sure I understand your question, Bob. If I want to change the text I usually just double-click on the Text layer and type something new, or if I want different words for each button I just write something different on each Text layer.

  3. #3
    Guru
    Join Date
    Nov 2002
    Posts
    611
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .txt file for text

    Sounds like you're talking about building variable data. I'm not really sure how you'd do this in Photoshop or if it's possible. I know that you can build variable objects in Illustrator since it will allow you to asign XML:ID's to objects and then base them on a DS. I know that other applications like Flash will do this as well. I thought I remember reading something about that functionality in Photoshop, but I haven't really been able to figure it out. I worked on this a bit in Illustrator and the manual was about as much use as a brick when it came to explaining this feature.

    Generally I just build multiple text layers for buttons and edit them manually, but if you're building hundreds of buttons, this is prohibitive, which is why they started introducing variables into graphics applications. Sorry if this isn't much help, but if this is what you're talking about, maybe this will clarify the question for someone who is more versed in the scripting aspects of Adobe products than myself.

  4. #4
    Newbie
    Join Date
    Dec 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .txt file for text

    A better example:

    I have the button http://www.photoshopgurus.info/forum...icon_buddy.gif (imagine it does not say buddy on it).

    I also have a .txt file that inside says icon_buddy.gif= 'buddy'

    That above (something similar to it) displays the word 'buddy' on the picture.

    You have a similar idea of what I want to do. Do you know how to do this?

  5. #5
    Josh
    Guest

    Re: .txt file for text

    Quote Originally Posted by BobbyDouglas
    I was wondering if anyone knew how to make a .file in photoshop use the text from a .txt file.
    I don't understand it. Since you want to use Photoshop for it, why not just type it? [confused]

    I mean... how many buttons are you going to change like this, hundreds??

    Not only that, but you'll have text that is too wide... how are you going to deal with that?

    I would just type the text and move on to the next project; my way of time managment ;)

  6. #6
    Guru
    Join Date
    Feb 2002
    Posts
    1,534
    Thanks
    0
    Thanked 1 Time in 1 Post

    .txt file for text

    You need an action for this, and batch work.

    You will have to make all your text files and save them in a folder, and have the button image on the other hand.

    But as far as I know, it is not possible in Photoshop to have the Text tool automatically accept any kind of txt, rtf, or whatever files.

    Unless it can be done with scripting, but that is way above my knowledge, and I suppose you'll have to go to the Adobe forums for that...

  7. #7
    Power User
    Join Date
    Dec 2002
    Posts
    248
    Thanks
    0
    Thanked 2 Times in 2 Posts

    .txt file for text

    Quote Originally Posted by BobbyDouglas
    A better example:

    I have the button http://www.photoshopgurus.info/forum...icon_buddy.gif (imagine it does not say buddy on it).

    I also have a .txt file that inside says icon_buddy.gif= 'buddy'

    That above (something similar to it) displays the word 'buddy' on the picture.

    You have a similar idea of what I want to do. Do you know how to do this?
    I'm sorry, Bobby. I just don't understand what it is you are trying to do. It sounds like you're trying to create more work for yourself than is necessary.

    Could you maybe give us a few screenshots of what it is you're talking about?

  8. #8
    Guru
    Join Date
    Feb 2002
    Location
    Kelowna, BC Canada
    Posts
    2,256
    Thanks
    1
    Thanked 4 Times in 4 Posts

    .txt file for text

    Guys Bobby is talking about Photoshop's scripting capabilities. I believe (or rather i 'think') PS uses Python for its scripting functions.

    Unfortunately i don't think there are a lot of folks around, or around here, that can help with this subject. I'm not even so sure that this function of PS is widely used -- you have to download and install special additional files for Photoshop to have this ability. The stock version can't do scripting.

    I suggest you ask around at the Adobe U2U Photoshop Forum Bobby. The additional files can be downloaded from Adobe's Photoshop download page on their site.

    Good luck. And please feel free to enlighten us here should you find your answer elsewhere.

    Thanks.

  9. #9
    Power User
    Join Date
    Dec 2002
    Posts
    248
    Thanks
    0
    Thanked 2 Times in 2 Posts

    .txt file for text

    The only thing I know in Photoshop that deals with changing the .txt field is to make your own document presets, as illustrated in this article:

    http://www.creativepro.com/story/feature/19113.html

    But like I said above, you are actually creating more work for yourself than is necessary. Just create your different text on individual layers.

  10. #10
    Guru
    Join Date
    Nov 2002
    Posts
    611
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .txt file for text

    Quote Originally Posted by C9Mouse
    But like I said above, you are actually creating more work for yourself than is necessary. Just create your different text on individual layers.
    As I said before, this has to do with the ability to have quickly updatable information. Let's say you have a database of items that you want to have their own buttons. You have say, 1,500 items and half of them are seasonal and change every 3 months. Now, you could build a PSD with 1500+ layers, or you could build one object that is linked to a text document that builds the images on the fly. When you want to change something, you just change it in the text file, and it generates the image on it's own.

    I don't really know the way to do this in practice, but I understand the need for it. Something that people are moving to is using binary image building servers. Basically the binary code for the image is stored in a database field and is actually streamed to the browser on command. This gives you lots of functionality but requries some more advanced programming knowledge.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.9
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0
Copyright 2011 Photoshop Gurus Forum. All rights reserved.
All times are GMT -5. The time now is 02:43 PM.
vBulletin Skins