Sun, Jan 12, 3:48 AM CST

Renderosity Forums / Photography



Welcome to the Photography Forum

Forum Moderators: wheatpenny Forum Coordinators: Anim8dtoon

Photography F.A.Q (Last Updated: 2024 Dec 31 10:42 am)



Subject: Script and dropplet with Phostoshop


lejimi ( ) posted Wed, 29 September 2004 at 1:56 AM ยท edited Sun, 12 January 2025 at 3:31 AM

Hello, II'm trying to write a script for Photoshop allowing me to prepare my pictures for RDS with a single clic. I meet several problems : first : I export my image with a width of 800px, buy when I try exporting it again in 200px width I naturally get an error message (the name already exists) How can I force the script to change the name each time ? second : I would like to use only one script for "vertical" and "horizontal" photos, setting the maximum dimension at 800px for the main picture and 200px for the thumbnail. Is it possible ? Last : I tried to make a dropplet with a simple (and perfectly working) script which only resizes the picture. I get the dropplet, but when dragging a picture on it nothing happens... I don't understand why ? So if someone could answer my questions... Or perhaps send me by mail a script that I could study and modifie (because I'm quite sure some of you have already written such a script) Thanks, Sam


DHolman ( ) posted Wed, 29 September 2004 at 6:25 AM

Sam - My questions would be (1) Which version of PS are you using and (2) which language are you writing your script in? -=>Donald


lejimi ( ) posted Wed, 29 September 2004 at 7:07 AM

I use PS 7.0, but I use don't use any language : I use the record button on the script "palette" (sorry my dictionary doesn't give me the english word) I hope hope it'll help you to understand my problem... Bye, Sam


DHolman ( ) posted Wed, 29 September 2004 at 8:25 AM

Attached Link: http://digitalmsx.com/software.php

Sam - Yes, I understand. You're not using PS scripts, you're using PS actions. An action is like a macro. There really isn't any decision branching available in an action. You can't say "If something equals X then do this, but if it equals Y then do the other this other thing." There is a scripting pack for Photoshop 7 that allows real scripting (Photoshop CS has it built in). It allows you to write programs in Java, Visual Basic or Applescript. It really helps if you know how to program to do what you want. Do a Google search for "photoshop 7 scripting guide" and you'll find a lot of references. I've included a link to a script that does resizing the way you want (it knows the difference between portrait and landscape images). Note that I have never used this script. Good luck! -=>Donald


lejimi ( ) posted Wed, 29 September 2004 at 8:32 AM

Thank you for the link. I'm just beginning to program in Java, and I had no idea it could be used to script for PS... It's an interresting possibility, but I'll have to learn a bit more before I can use it. Bye, Sam


JordyArt ( ) posted Wed, 29 September 2004 at 12:03 PM

Mike peeks in, sees something technical and quickly dodges out again


Misha883 ( ) posted Wed, 29 September 2004 at 9:28 PM

Wow! Thankyou, Donald!


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.