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,1),1) } }) # LayerDuplicate App.Do( Environment, 'LayerDuplicate', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Color Adjust Threshold App.Do( Environment, 'ColorAdjustThreshold', { 'Threshold': { 'Threshold': 135 }, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Gaussian Blur App.Do( Environment, 'GaussianBlur', { 'Radius': 6, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': None, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': App.Constants.BlendMode.SoftLight }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,-1,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,1),1) } }) # LayerDuplicate App.Do( Environment, 'LayerDuplicate', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # LayerArrange App.Do( Environment, 'LayerArrange', { 'Path': (0,1,[],False), 'MoveAboveSibling': True, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': None, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': App.Constants.BlendMode.Exclusion }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 17, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': None }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),1) } }) # New Raster Layer App.Do( Environment, 'NewRasterLayer', { 'General': { 'Opacity': 100, 'Name': u'Raster 1', '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, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Fill App.Do( Environment, 'Fill', { 'BlendMode': App.Constants.BlendMode.Normal, 'MatchMode': App.Constants.MatchMode.RGBValue, 'Material': { 'Color': (248,243,110), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': False, 'Opacity': 100, 'Point': (48.5,62.5), 'SampleMerged': False, 'Tolerance': 36, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': None, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': App.Constants.BlendMode.Burn }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 37, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': None }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,-3,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,1),1) } }) # LayerDuplicate App.Do( Environment, 'LayerDuplicate', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # LayerArrange App.Do( Environment, 'LayerArrange', { 'Path': (0,3,[],False), 'MoveAboveSibling': True, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': None, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': App.Constants.BlendMode.Screen }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),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, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Fill App.Do( Environment, 'Fill', { 'BlendMode': App.Constants.BlendMode.Normal, 'MatchMode': App.Constants.MatchMode.RGBValue, 'Material': { 'Color': (135,154,171), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (31.5,69.5), 'SampleMerged': False, 'Tolerance': 36, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,0,1),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': None, 'Name': None, 'IsVisible': None, 'IsTransparencyLocked': None, 'LinkSet': None, 'UseHighlight': None, 'PaletteHighlightColor': None, 'GroupLink': None, 'BlendMode': App.Constants.BlendMode.HardLight }, 'BlendRanges': None, 'Path': (0,0,[],False), '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.Silent, 'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 'Version': ((10,0,1),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,-1,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,1),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,1,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((10,0,1),1) } })