from JascApp import *

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

def Preset_BallsAndBubbles():
    return {
        'Illumination': {
            'MaxAmbience': 100, 
            'MinAmbience': 0, 
            'LightList': [{
                'BubbleLight': App.Constants.Boolean.false, 
                'Color': (255,255,255), 
                'Direction': (0.602786,-0.717903,-0.348231), 
                'HighlightSize': 11
                },{
                'BubbleLight': App.Constants.Boolean.false, 
                'Color': (192,192,192), 
                'Direction': (-0.54285,0.492579,0.680205), 
                'HighlightSize': 24
                },{
                'BubbleLight': App.Constants.Boolean.false, 
                'Color': (161,157,157), 
                'Direction': (-0.03154,-0.046415,0.998424), 
                'HighlightSize': 20
                }]
            }, 
        'Mode': App.Constants.CountType.Multiple, 
        'Multiple': {
            'AverageSize': 40, 
            'Coverage': 60, 
            'CreateMethod': App.Constants.BubbleCreateMethod.NonIntersecting, 
            'SizeVariation': 70
            }, 
        'RandomSeed': 0, 
        'RandomizePlacement': App.Constants.Boolean.false, 
        'Single': {
            'MaxPossibleSize': App.Constants.Boolean.true
            }, 
        'Surface': {
            'Material': {
                'Color': None, 
                'Pattern': None, 
                'Gradient': {
                    'Name': u'Black-white', 
                    'GradientType': App.Constants.GradientType.Radial, 
                    'Angle': 0, 
                    'RepeatCount': 0, 
                    'RepeatType': App.Constants.RepeatType.Pad, 
                    'ColorStops': None, 
                    'TransparencyStops': [], 
                    'CenterPoint': (0.5,0.5), 
                    'FocalPoint': (0.5,0.5), 
                    'Invert': App.Constants.Boolean.true
                    }, 
                'Texture': None
                }, 
            'BumpMap': {
                'Active': App.Constants.Boolean.false, 
                'Depth': 63, 
                'FileName': u'Shadow flowers', 
                'Fit': App.Constants.Boolean.false, 
                'Size': 335, 
                'Smoothness': 37
                }, 
            'EnvironmentMap': {
                'FringeType': 17996, 
                'Active': App.Constants.Boolean.true, 
                'FileName': u'Orange paper', 
                'FringeSpacing': 2, 
                'PatternOpacity': 33, 
                'EnvironmentType': App.Constants.BubbleMapType.CurrentImage
                }, 
            'Gloss': 100, 
            'Opacity': 100, 
            'Shininess': 100
            }
        }

def Do(Environment):
    # Balls And Bubbles
    App.Do( Environment, 'BallsAndBubbles',         Preset_BallsAndBubbles())

