![]() |
| |||||||
| Photoshop Scripting Learning and sharing for all platforms |
| | Thread Tools |
|
#1
| |||
| |||
| can a script pick a random action? Given a specific set of actions, is there any way to make a script randomly pick one of the actions and apply it to an image? |
|
#2
| ||||
| ||||
| Quote:
Suppose you had 10 candidate actions... * The script would include commands to execute each of them, say, via a table of action names or individual "DoAction" commands * Generate a random number 0-9 within the script * Execute the corresponding action Don't ask me how to "code this" HTH... ~Danny~ |
|
#3
| |||
| |||
| Random Acts of PS Try something like: var actions = [ "act1", "act2", "act3", "act4", /... "actN", ]; var randomAction = actions[Math.floor(Math.random() * actions.length)]; |
|
#4
| ||||
| ||||
| Quote:
Rô |
|
#5
| |||
| |||
| Quote:
|
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Actions | skydog | Software | 9 | 03-29-2007 02:42 PM |
| Action or script to save 2 output files | bouloss | Photoshop Scripting | 1 | 05-13-2006 09:51 PM |
| rules of third script or action? | Lasse | Photoshop Scripting | 2 | 08-17-2005 08:38 PM |
| A gratitude post for a great action script | RalphBenmurgia | Photo-Based Art | 3 | 02-20-2005 02:43 PM |
| Script or action for 50% guides | Doug Nelson | Photoshop Scripting | 11 | 01-04-2005 10:56 PM |