afrom JascApp import *
def ScriptProperties():
return {
'Author': '',
'Copyright': '',
'Description': '',
'Host': 'Paint Shop Pro',
'Host Version': '8.00'
}
def Do(Environment):
App.Do( Environment, 'LayerDuplicate', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'Offset', {
'FillColor': (0,0,0),
'EdgeMode': App.Constants.EdgeMode.Wrap,
'HorizontalOffset': -App.TargetDocument.Width/3,
'VerticalOffset': 0,
'Center': App.Constants.Boolean.false,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'LayerDuplicate', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'Offset', {
'FillColor': (0,0,0),
'EdgeMode': App.Constants.EdgeMode.Wrap,
'HorizontalOffset': -App.TargetDocument.Width/3,
'VerticalOffset': 0,
'Center': App.Constants.Boolean.false,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'SelectLayer', {
'Path': (0,-1,[],App.Constants.Boolean.false),
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Silent,
'AutoActionMode': App.Constants.AutoActionMode.Default
}
})
App.Do( Environment, 'MaskFromImage', {
'CreateMaskFrom': App.Constants.CreateMaskFrom.Luminance,
'InvertMaskData': App.Constants.Boolean.false,
'SourceImage': 0,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'SelectLayer', {
'Path': (1,1,[],App.Constants.Boolean.false),
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Silent,
'AutoActionMode': App.Constants.AutoActionMode.Default
}
})
App.Do( Environment, 'DeleteLayer', {
'Path': None,
'MergeMask': App.Constants.Boolean.true,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'LayerMergeDown', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
App.Do( Environment, 'ResizeCanvas', {
'AspectRatio': 2,
'FillColor': (188,0,160),
'HoriPlace': App.Constants.HorizontalType.Left,
'MaintainAspect': App.Constants.Boolean.false,
'NewDimUnits': App.Constants.UnitsOfMeasure.Pixels,
'NewHeight': App.TargetDocument.Height,
'NewWidth': App.TargetDocument.Width/3,
'VertPlace': App.Constants.VerticalType.Center,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})