from JascApp import *

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

def Preset_DisplacementMap():
    return {
        'Smoothness': 0, 
        'EdgeMode': App.Constants.EdgeMode.Repeat, 
        'DisplacementMethod': App.Constants.DisplacementMethod.Offset2D, 
        'DisplacementLayout': App.Constants.DisplacementLayout.Tile, 
        'DisplacementMapType': App.Constants.DisplacementMapType.Preset, 
        'Scale': 50, 
        'Rotation': 0, 
        'FileName': u'Burnout.jpg', 
        'Tile scale': 110, 
        'BackgroundColor': (0,0,0), 
        'Category': u'', 
        'GeneralSettings': {
            'ExecutionMode': App.Constants.ExecutionMode.Default, 
            'DialogPlacement': {
                'ShowMaximized': False, 
                'Rect': ((429,-8), 399, 545)
                }, 
            'PreviewVisible': True, 
            'AutoProof': False, 
            'AutoActionMode': App.Constants.AutoActionMode.Match
            }
        }

def Do(Environment):
    # DisplacementMap
    App.Do( Environment, 'DisplacementMap',         Preset_DisplacementMap())

