Creating Guides in a Photoshop document using Python- Part Three

Its been pretty straight forward to setup a function that allows a user defined number of guides to be added to an active document. I've plugged it into the Texture Toolset, so that when a user clicks the 'add guides' button, they get presented with:

'One million divisions!'


As an example, asking for '1' division will give you a reasonable result. 

  
 
Ask for a stupid amount and it will give you a stupid result...

Whoo! Cyan for the win. But seriously, making the guides script has been a good excuse to use the script listener, and I'm pretty happy with the results.