from JascApp import *

def ScriptProperties():
    return {
        'Author': u'',
        'Copyright': u'',
        'Description': u'',
        'Host': u'Paint Shop Pro 9',
        'Host Version': u'9.00'
        }

def Preset_BallsAndBubbles():
    return {
        'Illumination': {
            'MaxAmbience': 100, 
            'MinAmbience': 0, 
            'LightList': [{
                'BubbleLight': True, 
                'Color': (255,255,255), 
                'Direction': (0.642504,0.759794,0.0995037), 
                'HighlightSize': 19
                }]
            }, 
        'Mode': App.Constants.CountType.Single, 
        'Multiple': {
            'AverageSize': 10, 
            'Coverage': 50, 
            'CreateMethod': App.Constants.BubbleCreateMethod.Overlapping, 
            'SizeVariation': 100
            }, 
        'RandomSeed': 201, 
        'RandomizePlacement': True, 
        'Single': {
            'MaxPossibleSize': True
            }, 
        'Surface': {
            'Material': {
                'Color': (0,255,255), 
                'Pattern': None, 
                'Gradient': None, 
                'Texture': None, 
                'Art': None
                }, 
            'BumpMap': {
                'Active': False, 
                'Depth': 30, 
                'FileName': u'Boucle spectrale', 
                'Fit': True, 
                'Size': 100, 
                'Smoothness': 0, 
                'BumpCategory': u''
                }, 
            'EnvironmentMap': {
                'FringeType': 0, 
                'Active': True, 
                'FileName': u'Aigue-marine fractale', 
                'FringeSpacing': 90, 
                'PatternOpacity': 40, 
                'EnvironmentType': App.Constants.BubbleMapType.Environment, 
                'EnvironmentCategory': u''
                }, 
            'Gloss': 28, 
            'Opacity': 28, 
            'Shininess': 100
            }
        }

def Do(Environment):
    # Bulles
    App.Do( Environment, 'BallsAndBubbles',         Preset_BallsAndBubbles())

