from PSPApp import *

def ScriptProperties():
    return {
        'Author': u'',
        'Copyright': u'',
        'Description': u'',
        'Host': u'PaintShop Pro',
        'Host Version': u'18.00'
        }

def Preset_Airbrush():
    return {
        'BrushTip': {
            'Shape': App.Constants.BrushShape.Round, 
            'CustomBrush': u'ismael7', 
            'Size': 334, 
            'Hardness': 33, 
            'Step': 138, 
            'Density': 100, 
            'Thickness': 1, 
            'Rotation': 45, 
            'BrushVariance': {
                'SizeVariance': App.Constants.VarianceMethod.None, 
                'SizeJitter': 0, 
                'OpacityVariance': App.Constants.VarianceMethod.None, 
                'OpacityJitter': 0, 
                'DensityVariance': App.Constants.VarianceMethod.None, 
                'DensityJitter': 0, 
                'ThicknessVariance': App.Constants.VarianceMethod.None, 
                'ThicknessJitter': 0, 
                'RotationVariance': App.Constants.VarianceMethod.None, 
                'RotationJitter': 0, 
                'ColorBlendVariance': App.Constants.VarianceMethod.None, 
                'ColorBlendJitter': 0, 
                'HueVariance': App.Constants.VarianceMethod.None, 
                'HueJitter': 0, 
                'SaturationVariance': App.Constants.VarianceMethod.None, 
                'SaturationJitter': 0, 
                'LightnessVariance': App.Constants.VarianceMethod.None, 
                'LightnessJitter': 0, 
                'PositionJitter': 0, 
                'UseScaledPositionJitter': False, 
                'ImpressionsPerStep': 1, 
                'FadeRate': 100
                }
            }, 
        'Brush': {
            'Opacity': 20, 
            'BlendMode': App.Constants.BlendMode.LegacyLuminance, 
            'CAMG': {
                'SupportCAMG': False, 
                'EngineType': App.Constants.CAMGEngineType.MagicWand, 
                'FeatherDegree': 0, 
                'AntiAliasing': 0, 
                'MagicWand': {
                    'MatchMode': App.Constants.MatchMode.None, 
                    'Tolerance': 0, 
                    'Contiguous': False
                    }, 
                'Segmentation': {
                    
                    }, 
                'ObjectExtractor_PCA': {
                    
                    }
                }
            }, 
        'Rate': 17, 
        'ForegroundMaterial': None, 
        'BackgroundMaterial': None
        }

def Do(Environment):
    # Airbrush
    App.Do( Environment, 'Airbrush',         Preset_Airbrush())

