home *** CD-ROM | disk | FTP | other *** search
/ PC Extra 07 & 08 / pca1507.iso / Software / psp8 / Data1.cab / BevelSelection.PspScript < prev    next >
Encoding:
Text File  |  2003-04-22  |  2.2 KB  |  61 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Joe Fromm',
  6.         'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved. Permission to create derivate works of this script is granted provided this copyright notice is included',
  7.         'Description': 'Make a selection appear to sit on top of the image by beveling the edges and casting a shadow.',
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.     App.Do( Environment, 'FloatSelection', {
  14.             'ClearSource': None, 
  15.             'BackupSelection': None, 
  16.             'GeneralSettings': {
  17.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  18.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  19.                 }
  20.             })
  21.  
  22.     App.Do( Environment, 'InnerBevel', {
  23.             'Ambience': 0, 
  24.             'Angle': 315, 
  25.             'Bevel': 0, 
  26.             'Color': (255,255,255), 
  27.             'Depth': 20, 
  28.             'Elevation': 30, 
  29.             'Intensity': 50, 
  30.             'Shininess': 0, 
  31.             'Smoothness': 0, 
  32.             'Width': 8, 
  33.             'GeneralSettings': {
  34.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  35.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  36.                 }
  37.             })
  38.  
  39.     App.Do( Environment, 'DropShadow', {
  40.             'Blur': 5.000000, 
  41.             'Color': (0,0,0), 
  42.             'Horizontal': 10, 
  43.             'NewLayer': App.Constants.Boolean.false, 
  44.             'Opacity': 50, 
  45.             'Vertical': 10, 
  46.             'GeneralSettings': {
  47.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  48.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  49.                 }
  50.             })
  51.  
  52.     App.Do( Environment, 'SelectPromote', {
  53.             'KeepSelection': None, 
  54.             'LayerName': 'Beveled Selection', 
  55.             'GeneralSettings': {
  56.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  57.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  58.                 }
  59.             })
  60.  
  61.