from JascApp import *

def ScriptProperties():
    return {
        'Author': u'Jasc Software, Inc.',
        'Copyright': u'Copyright (c) 2003-2004 Jasc Software, Inc.  All rights reserved.',
        'Description': '',
        'Host': 'Paint Shop Pro',
        'Host Version': '8.00'
        }

def Preset_MagnifyingLens():
    return {
        'Darkness': 0, 
        'Defocus': 0, 
        'Frame': {
            'FrameColor': (255,255,255), 
            'Material': App.Constants.LensFrameMaterial.Chrome, 
            'Style': App.Constants.LensFrameShape.RoundedSquare, 
            'Thickness': 5
            }, 
        'Illumination': {
            'LightList': [{
                'LightColor': (255,255,255), 
                'LightDirection': (1,1,-1), 
                'HighlightSize': 20
                }], 
            'MaxAmbience': 50, 
            'MinAmbience': 0
            }, 
        'LensSurface': {
            'EnvironmentMap': {
                'Active': App.Constants.Boolean.false, 
                'MapType': App.Constants.LensMapType.CurrentImage, 
                'FileName': r'', 
                'PatternOpacity': 50
                }, 
            'Gloss': 0, 
            'Magnification': 30, 
            'LensMaterial': {
                'Color': (255,255,255), 
                'Pattern': None, 
                'Gradient': None, 
                'Texture': None
                }, 
            'LensOpacity': 10, 
            'Refraction': 30, 
            'ShapeType': App.Constants.LensShape.Spherical, 
            'Shininess': 50
            }
        }

def Do(Environment):
    App.Do( Environment, 'MagnifyingLens',         Preset_MagnifyingLens())

