from PSPApp import * def ScriptProperties(): return { 'Author': u'', 'Copyright': u'', 'Description': u'', 'Host': u'Paint Shop Pro X', 'Host Version': u'10.10' } def Do(Environment): # EnableOptimizedScriptUndo App.Do( Environment, 'EnableOptimizedScriptUndo', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,1,0),1) } }) # BlackAndWhiteFilm App.Do( Environment, 'BlackAndWhiteFilm', { 'FilterColor': App.Constants.BlackAndWhiteFilterColor.Blue, 'Strength': 80, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,1,0),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.LegacyLuminance }, '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,1,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 50, '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,1,0),1) } }) # CopyMerged App.Do( Environment, 'CopyMerged', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,1,0),1) } }) # PasteAsNewLayer App.Do( Environment, 'PasteAsNewLayer', { 'CreateFromDropData': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((10,1,0),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,1,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 30, '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,1,0),1) } })