Options

Testing frames for photos

2»

Comments

  • Options
    cletuscletus Registered Users Posts: 1,930 Major grins
    edited April 15, 2004
    pathfinder wrote:
    Did you make this one yourself, Cletus or did you find it in a program somewhere? I like it.
    I made it myself.

    Made the basic shape with the Rounded Rectangle and Rectangle tools. I then went back and added a bevel and a drop shadow. If you do something like this yourself, I would recomend trying to work with Paths and Shape Layers. That way you can save it as a custom shape. Then you can use it at any time (you'll still have to add the bevel and drop shadow, but that's not a big deal).

    Now I need to make a custom shape for a section of 35mm film!
  • Options
    cletuscletus Registered Users Posts: 1,930 Major grins
    edited April 22, 2004
    pathfinder wrote:
    This is an action that can be recorded and used inside other actions. I think this will work - but a 10% increase in canvas border size will give different border widths on rectangles but not squares.
    I found an answer to this problem that works for me. The answer is Scripting! Here is a very basic JavaScript to create a 5% canvas size increase.


    if (!app.documents.length > 0) {
    alert("No Active Document");
    }

    else {
    var docRef = app.activeDocument;
    app.preferences.rulerUnits = Units.PIXELS;
    myW = docRef.width;
    myH = docRef.height;

    var x, newW, newH;

    if (myW > myH) {
    x = myW;
    }
    else {
    x = myH;
    }

    x = x / 20;

    newW = myW + x;
    newH = myH + x;


    docRef.resizeCanvas(newW,newH,AnchorPosition.MIDDLECENTER);
    }


    So how do you use it???
    1. Copy and paste the script into a text file.
    2. Save the text file with a name like Canvas5.js - The important part here is the .js extension. That's how Photoshop knows this is JavaScript
    3. Start PS and open the file you want to run the canvas size increase on.
    4. Go to File > Scripts > Browse and point Photoshop to the script file you saved in step 2
    5. Select your script and click on Load (or just double click on your script file)
    What's really cool is you can create an Action that calls the script!

    If I get some time I'll write a better script that asks you by what percentage you want to increase the canvas size.

    If you want to read up on scripting in Photoshop you can start here
  • Options
    pathfinderpathfinder Super Moderators Posts: 14,697 moderator
    edited April 23, 2004
    cletus wrote:
    I found an answer to this problem that works for me. The answer is Scripting! Here is a very basic JavaScript to create a 5% canvas size increase.


    if (!app.documents.length > 0) {
    alert("No Active Document");
    }

    else {
    var docRef = app.activeDocument;
    app.preferences.rulerUnits = Units.PIXELS;
    myW = docRef.width;
    myH = docRef.height;

    var x, newW, newH;

    if (myW > myH) {
    x = myW;
    }
    else {
    x = myH;
    }

    x = x / 20;

    newW = myW + x;
    newH = myH + x;


    docRef.resizeCanvas(newW,newH,AnchorPosition.MIDDLECENTER);
    }


    So how do you use it???
    1. Copy and paste the script into a text file.
    2. Save the text file with a name like Canvas5.js - The important part here is the .js extension. That's how Photoshop knows this is JavaScript
    3. Start PS and open the file you want to run the canvas size increase on.
    4. Go to File > Scripts > Browse and point Photoshop to the script file you saved in step 2
    5. Select your script and click on Load (or just double click on your script file)
    What's really cool is you can create an Action that calls the script!

    If I get some time I'll write a better script that asks you by what percentage you want to increase the canvas size.

    If you want to read up on scripting in Photoshop you can start here

    Cletus - you are becoming a dangerous man.................Wink2.gif
    Pathfinder - www.pathfinder.smugmug.com

    Moderator of the Technique Forum and Finishing School on Dgrin
  • Options
    cletuscletus Registered Users Posts: 1,930 Major grins
    edited April 23, 2004
    pathfinder wrote:
    Cletus - you are becoming a dangerous man.................Wink2.gif
    Why thank you! :andy

    If you get a chance, give the script a try and let me know if it works for you.

    By the way, it looks like scripting only works in Photoshop 7.0 and newer. With 7.0 you have to get the Photoshop Scripting Plug-In but scripting is built into CS.
Sign In or Register to comment.