from JascApp import * def ScriptProperties(): return { 'Author': u'smashindivs', 'Copyright': u'at smashindivs.com', '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) } }) # 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,-4,[],False), 'GeneralSettings': { 'ExecutionMode': App.Constants.ExecutionMode.Silent, 'AutoActionMode': App.Constants.AutoActionMode.Default, 'Version': ((9,0,0),1) } }) # Eyedropper App.Do( Environment, 'Eyedropper', { 'Point': (210.5,84.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) } }) # 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': (255,119,218), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (163.5,144.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': 76, '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.Multiply }, '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': (232.5,114.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': (81,213,229), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (152.5,132.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': 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) } }) # 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) } }) # 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': (230.5,140.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': (0,0,0), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (143.5,33.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': 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) } }) # 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 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': (216.5,49.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': (229,185,51), 'Pattern': None, 'Gradient': None, 'Texture': None, 'Art': None }, 'UseForeground': True, 'Opacity': 100, 'Point': (144.5,130.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': 58, '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.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.Default, '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) } }) # Layer Properties App.Do( Environment, 'LayerProperties', { 'General': 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, '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) } }) # 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': [(75,0),(255,255)], 'Red': [(59,107),(255,255)], 'Green': [(75,42),(255,255)], 'Blue': [(71,0),(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': 46, '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) } })