Randomizing scripts

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

pfaffenbichler

Randomizing scripts

Post by pfaffenbichler »

Salmonick, have you made sure the path is correct?
You could try
var theFolder = Folder.selectDialog ("select folder");
alert (theFolder);
to verify the path.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

salmonickatelier

Randomizing scripts

Post by salmonickatelier »

The path is correct. I could try your code but that was also in the original code. I don't want to click the same folder everytime.

But wait I thought about something. I think that the path is to long for the script. So I past the folder direct on the disk and... It works! So the path cannot be to long. Good to know.
pfaffenbichler

Randomizing scripts

Post by pfaffenbichler »

If Math.random() provides random values for positioning I don’t see how it would not also for the rotation … 
pfaffenbichler

Randomizing scripts

Post by pfaffenbichler »

A screenshot of the results after running the Script six times.