What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Search results

  1. P

    Photoshop Scripts - Help with my ratios

    Ok, I understand the concept, but wouldn't it be easier to work out the percentage for the left, top,right and bottom, so that you can use the same percentages on any document.
  2. P

    Photoshop Scripts - Help with my ratios

    I wonder if you could explain what you are trying to do. A picture would help. The code you posted does not make sense at all. It is full of errors. IE: var left = (left * ratioW); left is still undefined and you are trying to times that by ratioW, same goes for the others. Getting the...
  3. P

    Actions Random text action?

    Here is the same code but modified to remove the selected line from the input file. So backup the input file! Of course this will only work until you run out of words/lines. #target photoshop function main(){ var txtFile = File(Folder.desktop + "/poem.txt"); //text file to get a line from...
  4. P

    Actions Random text action?

    There are a couple of ways to stop the same selection but it depends on how the script is structured. One way is to remove the word/line from the input file. The other way is to create an array of words used. Both options will eventually end up with nothing to select. More information would be...
  5. P

    Actions Random text action?

    Yes everything after // is a comment and can be left, could be useful if you want to alter anything.
  6. P

    Actions Random text action?

    This example will select a random line from a text file. The code assumes that there is a text file on the Desktop called poem.txt If a document is not open a new document will be created. The random line of text will be put on a new text layer. #target photoshop function main(){ var txtFile...
  7. P

    Paths and save for web

    Sorry but no, Save For Web will remove the path. A standard saveas JPG will retain the clipping path so all you can do is reduce the quality.
  8. P

    Actions Random text action?

    Here is the basics... First, where do you find documentation? Answer: On your own computer, it gets installed with your version of Photoshop. In the following folders: PC: C:\Program Files\Adobe\Adobe Photoshop CS#\Scripting Guide MAC: <hard drive>/Applications/Adobe Photoshop CS#/ Scripting...
  9. P

    Actions Random text action?

    Yes you can record running other actions or if you are running a script you can run any amount of actions you like... app.doAction("actionName", "actionSet");
  10. P

    Actions Random text action?

    All you need to do is select a random array item IE: var alphabet = "abcdefghijklmnopqrstuvwxyz"; var nums ="0123456789"; alert(alphabet[Math.round (Math.random()* 25)]); alert(nums[Math.round (Math.random()* 9)]);
  11. P

    Help - Batch splitting images in 2 with arbitrary sizes

    Copy and paste the following code into ExtendScript (this gets installed with Photoshop) and run the script. It will prompt for the folder of files to be processed. (I am guessing they are JPG) The files will be split and put into anew folder called Processed off the selected folder. #target...
  12. P

    How can I create a specific action / batch?

    This should be close... Copy and paste the following script into ExtendScript Toolkit, this program is installed at the same time as Photoshop. Run the script and that should combine all the tiffs. #target Photoshop app.bringToFront(); function main(){ var inputFolder= Folder.selectDialog...
  13. P

    Batch Automation Batch automation problem

    All is not lost, it just means you need to set up the following script. What you need to do is create a new action that does :- File - Place - select the picture you want placed, hit return to accept the defaul position. (This will be in the center) From the action palette fly out menu select...
  14. P

    Batch Automation Batch automation problem

    Picture Processor should be able to to do this. http://www.scriptsrus.talktalk.net/PP.htm Look at the part that adds a logo.
  15. P

    Watermarking

    The above tutorial was going fine upto the place, that's where it went wrong. There is no need to sort portrait and landscape pictures. Ok Once you have placed the file DO NOT MOVE IT, this is where the tutorial is going wrong, just hit enter, you will have your logo in the center of your...
  16. P

    Layer Automatically Attaching To Edges

    It sounds as if you have ... View > Snap to > Document Bounds ticked
  17. P

    Multiple Guide Sets for Photoshop CS5 or better.

    Photoshop CS5 or Better! Here is another option. Here are two scripts:- Layer Guides Set.jsx This puts the guide information into the current layer. Layer Guides Display.jsx This retrieves and displays the guides (removing existing guides if any)
  18. P

    bind guidelines to layer???

    You could store guide information in the layer metadata, but it would have to be in Photoshop CS5 or better. This thread may be of interest... http://www.photoshopgurus.com/forum/photoshop-actions-automation/34782-multiple-guide-sets-photoshop-cs5-better.html
  19. P

    beatiful waterfalls in Croatia

    You should not be displaying another persons copywrighted work! http://www.widerange.org/photo/plitvice-waterfalls-croatia/
Back
Top