from JascApp import * def ScriptProperties(): return { 'Author': u'', 'Copyright': u'', 'Description': u'', 'Host': u'Paint Shop Pro 9', 'Host Version': u'9.00' } def Do(Environment): # EnableOptimizedScriptUndo App.Do( Environment, 'EnableOptimizedScriptUndo', { 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),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': ((9,0,0),1) } }) # Fill App.Do( Environment, 'Fill', { 'BlendMode': App.Constants.BlendMode.Normal, 'MatchMode': App.Constants.MatchMode.RGBValue, 'Material': { 'Color': (246,97,72), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (232.5,148.5), 'SampleMerged': False, 'Tolerance': 36, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 18, '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.Default, 'Version': ((9,0,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.TrueColor }, '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.Default, 'Version': ((9,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, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': -1, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,1,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((9,0,0),1) } }) # Eyedropper App.Do( Environment, 'Eyedropper', { 'Point': (666.5,578.5), 'SampleSize': 0, 'Material': App.Constants.MaterialRef.Foreground, 'ActiveLayerOnly': True, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': 1, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Fill App.Do( Environment, 'Fill', { 'BlendMode': App.Constants.BlendMode.Normal, 'MatchMode': App.Constants.MatchMode.RGBValue, 'Material': { 'Color': (87,175,101), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (241.5,326.5), 'SampleMerged': False, 'Tolerance': 36, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 64, '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.Default, 'Version': ((9,0,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.Overlay }, '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.Default, 'Version': ((9,0,0),1) } }) # New Raster Layer App.Do( Environment, 'NewRasterLayer', { 'General': { 'Opacity': 100, 'Name': u'Raster 3', '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': ((9,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': -1, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,1,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((9,0,0),1) } }) # Eyedropper App.Do( Environment, 'Eyedropper', { 'Point': (493.5,581.5), 'SampleSize': 0, 'Material': App.Constants.MaterialRef.Foreground, 'ActiveLayerOnly': True, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': 1, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Fill App.Do( Environment, 'Fill', { 'BlendMode': App.Constants.BlendMode.Normal, 'MatchMode': App.Constants.MatchMode.RGBValue, 'Material': { 'Color': (255,255,255), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (205.5,152.5), 'SampleMerged': False, 'Tolerance': 36, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 8, '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.Default, 'Version': ((9,0,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.Dodge }, '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.Default, 'Version': ((9,0,0),1) } }) # New Raster Layer App.Do( Environment, 'NewRasterLayer', { 'General': { 'Opacity': 100, 'Name': u'Raster 4', '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': ((9,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': -1, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectLayer App.Do( Environment, 'SelectLayer', { 'Path': (0,1,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((9,0,0),1) } }) # Eyedropper App.Do( Environment, 'Eyedropper', { 'Point': (273.5,198.5), 'SampleSize': 0, 'Material': App.Constants.MaterialRef.Foreground, 'ActiveLayerOnly': True, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # SelectDocument App.Do( Environment, 'SelectDocument', { 'SelectedImage': 1, 'Strict': False, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Fill App.Do( Environment, 'Fill', { 'BlendMode': App.Constants.BlendMode.Normal, 'MatchMode': App.Constants.MatchMode.RGBValue, 'Material': { 'Color': (255,253,43), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (624.5,181.5), 'SampleMerged': False, 'Tolerance': 36, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,0),1) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': { 'Opacity': 8, '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.Default, 'Version': ((9,0,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.Default, 'Version': ((9,0,0),1) } }) # Curves App.Do( Environment, 'NewAdjustmentLayerCurves', { 'General': { 'Opacity': 100, 'Name': u'Curves 1', 'IsVisible': True, 'IsTransparencyLocked': False, 'LinkSet': 0, 'UseHighlight': False, 'PaletteHighlightColor': (255,255,64), 'GroupLink': True, 'BlendMode': App.Constants.BlendMode.Normal }, 'CurveParams': { 'RGB': [(12,0),(255,255)], 'Red': [(158,61),(255,255)], 'Green': [(53,16),(255,255)], 'Blue': [(102,81),(255,255)] }, 'Overlay': { 'Color': (255,0,0), 'Opacity': 50 }, 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Default, 'AutoActionMode': App.Constants.AutoActionMode.Match, 'Version': ((9,0,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.Default, 'Version': ((9,0,0),1) } })