from PSPApp import * def ScriptProperties(): return { 'Author': u'', 'Copyright': u'', 'Description': u'', 'Host': u'Paint Shop Pro X', 'Host Version': u'10.00' } def Do(Environment): # EnableOptimizedScriptUndo App.Do( Environment, 'EnableOptimizedScriptUndo', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # FileNew App.Do( Environment, 'NewFile', { 'Width': 1024, 'Height': 150, 'ColorDepth': App.Constants.Colordepth.SixteenMillionColor, 'DimensionUnits': App.Constants.DimensionType.Pixels, 'ResolutionUnits': App.Constants.ResolutionUnits.PixelsPerIn, 'Resolution': 100, 'FillMaterial': { 'Color': (255,255,255), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'Transparent': True, 'LayerType': App.Constants.NewLayerType.Raster, 'ArtMediaTexture': { 'Category': u' ', 'Name': u'Canvas coarse', 'EnableFill': True, 'FillColor': (255,255,255) }, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'DialogPlacement': { 'ShowMaximized': False, 'Rect': ((367,114), 291, 511) }, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': 0, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # Selection App.Do( Environment, 'Selection', { 'General': { 'Mode': App.Constants.SelectionOperation.Replace, 'Antialias': True, 'Feather': 0 }, 'SelectionShape': App.Constants.SelectionShape.RoundedRectangle, 'Start': (18,36), 'End': (1003,52), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # SelectInvert App.Do( Environment, 'SelectInvert', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # Drop Shadow App.Do( Environment, 'DropShadow', { 'Blur': 5, 'Color': (0,0,0), 'Horizontal': 2, 'NewLayer': False, 'Opacity': 50, 'Vertical': 4, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'DialogPlacement': { 'ShowMaximized': False, 'Rect': ((311,102), 411, 535) }, 'PreviewVisible': True, 'AutoProof': True, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # SelectInvert App.Do( Environment, 'SelectInvert', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # Drop Shadow App.Do( Environment, 'DropShadow', { 'Blur': 5, 'Color': (255,255,255), 'Horizontal': 2, 'NewLayer': False, 'Opacity': 50, 'Vertical': 4, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'DialogPlacement': { 'ShowMaximized': False, 'Rect': ((311,102), 411, 535) }, 'PreviewVisible': True, 'AutoProof': True, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # New Raster Layer App.Do( Environment, 'NewRasterLayer', { 'General': { 'Opacity': 100, 'Name': u'Raster 2', 'IsVisible': True, 'IsTransparencyLocked': False, 'LinkSet': 0, 'UseHighlight': False, 'PaletteHighlightColor': (255,255,64), 'GroupLink': True, 'BlendMode': App.Constants.BlendMode.Normal }, 'BlendRanges': { 'BlendRangeGreen': (0,0,255,255,0,0,255,255), 'BlendRangeRed': (0,0,255,255,0,0,255,255), 'BlendRangeBlue': (0,0,255,255,0,0,255,255), 'BlendRangeGrey': (0,0,255,255,0,0,255,255) }, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'DialogPlacement': { 'ShowMaximized': False, 'Rect': ((632,166), 392, 535) }, 'PreviewVisible': False, 'AutoProof': False, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } }) # LayerArrange App.Do( Environment, 'LayerArrange', { 'Path': (0,-1,[],False), 'MoveAboveSibling': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': None, 'Name': u'Fill with your color', 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': None }, 'BlendRanges': None, 'Path': None, 'ArtMediaTexture': None, 'BrightnessContrast': None, 'ChannelMixer': None, 'ColorBalance': None, 'CurveParams': None, 'HSL': None, 'Threshold': None, 'Levels': None, 'Posterize': None, 'Overlay': None, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'DialogPlacement': { 'ShowMaximized': False, 'Rect': ((632,193), 392, 535) }, 'PreviewVisible': True, 'AutoProof': False, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,0),1) } })