DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> Tips, Tricks, and Q&A >> Adding conditions to Actions or Scripts in CS3
Pages:  
Showing posts 1 - 10 of 10, (reverse)
AuthorThread
07/27/2008 04:24:56 PM · #1
Hi All,

Is it possible to add conditions to actions or scripts.

The problem I'm trying to solve is to resize or adjust the canvas size of a directory of pictures to exactly 6"x4".

I know I can resize in bulk setting a maximum long edge of 6" but I don't know how I can adjust the canvas size on the other edge in bulk to exactly 4"

In pseudo code I want something similar to:

if (width < 4") canvas width = 4" black
else if (height < 4") canvas height = 4" black

Is this possible?

Thanks
Kevin
07/27/2008 05:33:32 PM · #2
Well for Canvas Size all you have to do is create an action that includes Canvas Size and plug in the sizes you want and click the Relative box then save the action. That just cuts or expands the canvas. I am sure you would have to make one for Portrait and one for Landscape though and just sort them in Bridge

Message edited by author 2008-07-27 17:36:30.
07/27/2008 05:37:15 PM · #3
Originally posted by dacrazyrn:

Well for Canvas Size all you have to do is create an action that includes Canvas Size and plug in the sizes you want and click the Relative box then save the action. That just cuts or expands the canvas. I am sure you would have to make one for Portrait and one for Landscape though


But is the problem with this that you would would need to have seperate landscape and Portrait format actions? Then I would still need to manually select all the appropriate orentation images and run the specific action for that orientation? I'm talking about thousands of images so this would be a time consuming exercise

Thanks
07/27/2008 05:38:51 PM · #4
Sorry, just seen you have answered that question!! Need some sleep :0)

is there an easy way to sort images in bridge by orientation?
07/27/2008 06:50:15 PM · #5
It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.
07/28/2008 02:31:12 AM · #6
Originally posted by Bebe:

It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.


Fantastic, I will look into this then, I was a C++ and Java programmer for 10 years so this sounds great.

I'd read somewhere about .js scripts in Photoshop but didn't know what was possible. I'll google it.

thanks
07/28/2008 03:30:16 AM · #7
Originally posted by Bebe:

It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.

Hey, thanks for the info BB! I wasn't aware that Photoshop has built-in scripting support.
07/28/2008 04:57:21 AM · #8
Maybe easier is going in Bridge...selecting the folder everything is in...select all...Go to View and Sort...by Dimension...then run your action for that one.
07/28/2008 09:32:37 AM · #9
Originally posted by Mick:

Originally posted by Bebe:

It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.

Hey, thanks for the info BB! I wasn't aware that Photoshop has built-in scripting support.


No problem Mick! I've found the scripting to be really useful.

Kevin - Let me know if you solved your problem, otherwise I'll find some time today to try to help. Sounds like with your background you should be all sorted.

Message edited by author 2008-07-28 09:34:19.
07/28/2008 09:42:16 AM · #10
Originally posted by Bebe:


Kevin - Let me know if you solved your problem, otherwise I'll find some time today to try to help. Sounds like with your background you should be all sorted.


I will do thanks again
Pages:  
Current Server Time: 04/24/2024 10:31:10 AM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Prints! - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2024 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 04/24/2024 10:31:10 AM EDT.