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

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Kris Zaklika',
  6.         'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
  7.         'Description': 'A collander impression using gradient and texture',
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Preset_MagnifyingLens():
  13.     return {
  14.         'Bound': (0.17125,0.07,0.82375,0.94), 
  15.         'Darkness': 0, 
  16.         'Defocus': 0, 
  17.         'Frame': {
  18.             'FrameColor': (192,192,192), 
  19.             'Material': App.Constants.LensFrameMaterial.Gold, 
  20.             'Style': App.Constants.LensFrameShape.Circular, 
  21.             'Thickness': 4
  22.             }, 
  23.         'Illumination': {
  24.             'LightList': [{
  25.                 'LightColor': (255,255,255), 
  26.                 'LightDirection': (-0.2913,0.2691,-0.8325), 
  27.                 'HighlightSize': 48
  28.                 }], 
  29.             'MaxAmbience': 100, 
  30.             'MinAmbience': 0
  31.             }, 
  32.         'LensSurface': {
  33.             'EnvironmentMap': {
  34.                 'Active': App.Constants.Boolean.false
  35.                 }, 
  36.             'Gloss': 0, 
  37.             'Magnification': 0, 
  38.             'LensMaterial': {
  39.                 'Color': None, 
  40.                 'Pattern': None, 
  41.                 'Gradient': {
  42.                     'Name': 'Black-white', 
  43.                     'GradientType': App.Constants.GradientType.Radial, 
  44.                     'Angle': 0, 
  45.                     'RepeatCount': 50, 
  46.                     'RepeatType': App.Constants.RepeatType.Pad, 
  47.                     'ColorStops': None, 
  48.                     'TransparencyStops': [], 
  49.                     'CenterPoint': (0.5,0.5), 
  50.                     'FocalPoint': (0.5,0.5), 
  51.                     'Invert': App.Constants.Boolean.false
  52.                     }, 
  53.                 'Texture': {
  54.                     'Name': 'Polka Dot', 
  55.                     'Image': None, 
  56.                     'Angle': 0, 
  57.                     'Scale': 10
  58.                     }
  59.                 }, 
  60.             'LensOpacity': 100, 
  61.             'Refraction': 0, 
  62.             'ShapeType': App.Constants.LensShape.Spherical, 
  63.             'Shininess': 15
  64.             }
  65.         }
  66.  
  67. def Do(Environment):
  68.     App.Do( Environment, 'MagnifyingLens',         Preset_MagnifyingLens())
  69.  
  70.