home *** CD-ROM | disk | FTP | other *** search
- from JascApp import *
-
- def ScriptProperties():
- return {
- 'Author': 'Kris Zaklika',
- 'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
- 'Description': 'A collander impression using gradient and texture',
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
- def Preset_MagnifyingLens():
- return {
- 'Bound': (0.17125,0.07,0.82375,0.94),
- 'Darkness': 0,
- 'Defocus': 0,
- 'Frame': {
- 'FrameColor': (192,192,192),
- 'Material': App.Constants.LensFrameMaterial.Gold,
- 'Style': App.Constants.LensFrameShape.Circular,
- 'Thickness': 4
- },
- 'Illumination': {
- 'LightList': [{
- 'LightColor': (255,255,255),
- 'LightDirection': (-0.2913,0.2691,-0.8325),
- 'HighlightSize': 48
- }],
- 'MaxAmbience': 100,
- 'MinAmbience': 0
- },
- 'LensSurface': {
- 'EnvironmentMap': {
- 'Active': App.Constants.Boolean.false
- },
- 'Gloss': 0,
- 'Magnification': 0,
- 'LensMaterial': {
- 'Color': None,
- 'Pattern': None,
- 'Gradient': {
- 'Name': 'Black-white',
- 'GradientType': App.Constants.GradientType.Radial,
- 'Angle': 0,
- 'RepeatCount': 50,
- 'RepeatType': App.Constants.RepeatType.Pad,
- 'ColorStops': None,
- 'TransparencyStops': [],
- 'CenterPoint': (0.5,0.5),
- 'FocalPoint': (0.5,0.5),
- 'Invert': App.Constants.Boolean.false
- },
- 'Texture': {
- 'Name': 'Polka Dot',
- 'Image': None,
- 'Angle': 0,
- 'Scale': 10
- }
- },
- 'LensOpacity': 100,
- 'Refraction': 0,
- 'ShapeType': App.Constants.LensShape.Spherical,
- 'Shininess': 15
- }
- }
-
- def Do(Environment):
- App.Do( Environment, 'MagnifyingLens', Preset_MagnifyingLens())
-
-