<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
 <channel>
  <title>Scripts</title>
  <link>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?</link>
  <generator>http://www.eblah.com</generator>
  <description></description>
  <language>en</language>
  <item>
   <title>Merge layers if present</title>
   <link>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1360601218/</link>
   <comments>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1360601218/#num1</comments>
   <description><![CDATA[Is it possible to create a script that will merge all layers if they are present, and if there are no multiple layers, just ignore that layers and proceed to the next step in the script?&nbsp;&nbsp;I find myself often starting a script just to be cancelled because I forgot to merge the layers.&nbsp;&nbsp;I know how to add merging all layers, but have no idea about what to do if it finds no layers to keep the script from cancelling out.<br /><br /><br />Edit:&nbsp;&nbsp;I finally figured it out by using a search program through my existing scripts for anything about "layer"s and adding this works great to automatically merge all layers without any prompts:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;# save off the target doc before we do anything<br />&nbsp;&nbsp;&nbsp;&nbsp;Target = App.TargetDocument<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if JascUtils.GetLayerCount( Environment, Target ) != 1:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;App.Do( Environment, 'LayerMergeAll' )<br /><br />I added right after the section about "# EnableOptimizedScriptUndo" that's usually found at the top of most scripts.]]></description>
   <pubDate>Mon, 11 Feb 2013 08:46:58</pubDate>
   <dc:creator>Henderson</dc:creator>
  </item>
  <item>
   <title>Suz's Script Help</title>
   <link>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1355568819/</link>
   <comments>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1355568819/#num1</comments>
   <description><![CDATA[Hi,I'm using PSP X2 and Suzie's Multiple Tag Generator Script.<br />I've used it on PSP X2 before so I know it does run but since I had to add everything on a new computer all I get when trying is the invalid script name error.<br />Any help would be appreciated.]]></description>
   <pubDate>Sat, 15 Dec 2012 02:53:39</pubDate>
   <dc:creator>22524</dc:creator>
  </item>
  <item>
   <title>How to replace the background in a person photo</title>
   <link>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1346950184/</link>
   <comments>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1346950184/#num1</comments>
   <description><![CDATA[I have thousands of pictures of employees and I'm trying to determine if a script can change the background of the picture.<br /><br />Each picture is a head/ shoulders shot with a backdrop. Most backdrops are 1 of several colors. Of course there are some which use different backdrops, some are gradients, some are just old pictures with different backdrops.<br /><br />I know I can sample a pixel to obtain the color present and then replace that color with the standard color. My ultimate solution would be that PSP can somehow automagically recognize a person, mask them and replace everything outside the mask. <br />Can that be done?]]></description>
   <pubDate>Thu, 6 Sep 2012 09:49:44</pubDate>
   <dc:creator>13155</dc:creator>
  </item>
  <item>
   <title>How to get the color at a particular pixel?</title>
   <link>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1346791803/</link>
   <comments>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1346791803/#num1</comments>
   <description><![CDATA[I have written a script to resize a large collection of photos to a more standard size. I now want to use the ResizeCanvas command to get them all to be the same size. <br />Some of the pictures are narrower than the final width and I need to specify the FillColor value so that the vertical stripes on the left and right match the background color.<br /><br />How can I tell what the RGB color at pixel position 5,5 is?]]></description>
   <pubDate>Tue, 4 Sep 2012 13:50:03</pubDate>
   <dc:creator>13155</dc:creator>
  </item>
  <item>
   <title>split layered psd into individual images</title>
   <link>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1341598931/</link>
   <comments>http://pspug.org/cgi-bin/forum/Blah.pl/Blah.pl?m-1341598931/#num1</comments>
   <description><![CDATA[I used the Flexify plugin to make 3D poly globes of rectangular maps.&nbsp;&nbsp;The plugin will generate a layered .psd file&nbsp;&nbsp;that can be opened in PSP 9 with all of the faces needed to make the polyhedron.&nbsp;&nbsp;Is there a script or some process for PSP 9 or another plugin that will split the images in the many, many layers into individual images?&nbsp;&nbsp;Right now I am copying and pasting each image.&nbsp;&nbsp;One of the polyhedra (20-2 geodesic) generates an 80 layer psd of the faces and it takes a while to copy and paste each image from each&nbsp;&nbsp;layer onto a page for printing.&nbsp;&nbsp;<img src="/blahdocs/Smilies/smiley.gif" style="vertical-align: middle" alt="" />&nbsp;&nbsp;<img src="/blahdocs/Smilies/shock.gif" style="vertical-align: middle" alt="" />]]></description>
   <pubDate>Fri, 6 Jul 2012 11:22:11</pubDate>
   <dc:creator>DougT</dc:creator>
  </item>
 </channel>
</rss>