Skip to main content
Inspiring
September 11, 2014
Question

Pelin noise aka Render > Clouds

  • September 11, 2014
  • 2 replies
  • 1817 views

When you use Render > Clouds it fills a layer with .. random clouds (Looks like perlin noise to me!). If you were to repeat the process, you would get slightly different looking clouds. I'm guessing that it draws a set of clouds with a random number taken from the time code? Which is why you can't can the same one twice!

Is there a way to expose and the access settings under the hood? I'm hoping to be be able to write a function that creates render clouds (with a random seed) so that drawMeSomePrettyClouds (217) will draw exactly the same image twice. Yes, it's procedural image time!

I don't actually think this is possible in Photoshop, so I may ending up having to write a perlin noise generator and Photoshop scripting might not be the best starting point for this. If anyone can point me in the right direction to do this it would be appreciated. Cheers

This topic has been closed for replies.

2 replies

September 11, 2014

This works in Photoshop CS4 on Mac OS X (but the randomSeed parameter is just ignored in CS):

function clouds (randomSeed)

{

    var desc = new ActionDescriptor ();

    desc.putInteger (charIDToTypeID ("FlRs" ), randomSeed);

    app.executeAction (stringIDToTypeID ("clouds"), desc);

}

clouds (1);

clouds (42);

HTH,

--Mikaeru

P.S. : I'll never get used to this forum's poor editor...

GhoulfoolAuthor
Inspiring
September 11, 2014

Sadly the images are not the same.

GhoulfoolAuthor
Inspiring
September 11, 2014

Ghoulfool wrote:

Sadly the images are not the same.

Yes, calling the clouds function with two different random seed values will obviously produce two different images, but calling the fonction with the *same* value should always render the same image (at least from Photoshop CS4)...


Sorry, I should have made that clear.

In CS2, generating clouds from the script with the same seed does not produce the same results. However, I've just run it on a collegue's machine and in CS5, it's fine.

c.pfaffenbichler
Community Expert
Community Expert
September 11, 2014

I guess you should look into creating proper Photoshop plugins, but that takes C or C++ knowledge if I understand correctly.