This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > December 2006 > need a simple scrip to run a plug in
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
need a simple scrip to run a plug in
|
|
| Dan Dunivent 2006-12-06, 8:09 pm |
|
I want to create a tool bar icon to run a plug in (Polaroid dust and scratch remover). I
think I need to use a scrip and then bond to a icon. But, when I try to run the app on
too large of a selection, it doesn't work and gives me an error. This is okay, but when
I'm running from my scrip to dumps me out of PSP11 altogether. How can I correct
this, so that if there's an error, it just stops and doesn't dump me out of PSP?
Here's the script I've been using
from PSPApp import *
def ScriptProperties():
return {
'Author': u'',
'Copyright': u'',
'Description': u'',
'Host': u'Corel Paint Shop Pro Photo XI',
'Host Version': u'11.00'
}
def Do(Environment):
# EnableOptimizedScriptUndo
App.Do( Environment, 'EnableOptimizedScriptUndo', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((11,0,0),1)
}
})
# Polaroid..._Dust && Scratch Removal
App.Do( Environment, 'Polaroid..._Dust && Scratch Removal', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((11,0,0),1)
},
'DefaultProperties': []
})
| |
| SuzShook 2006-12-06, 8:09 pm |
| I tried this, with the same results. Perhaps do some testing to determine
what the largest workable selection is, and stay below that. Does the same
thing in PSP 9 and X. Suz
Dan Dunivent wrote:
> I want to create a tool bar icon to run a plug in (Polaroid dust and
> scratch remover). I think I need to use a scrip and then bond to a
> icon. But, when I try to run the app on too large of a selection, it
> doesn't work and gives me an error. This is okay, but when I'm
> running from my scrip to dumps me out of PSP11 altogether. How can I
> correct
> this, so that if there's an error, it just stops and doesn't dump me
> out of PSP?
>
> Here's the script I've been using
>
>
> from PSPApp import *
>
> def ScriptProperties():
> return {
> 'Author': u'',
> 'Copyright': u'',
> 'Description': u'',
> 'Host': u'Corel Paint Shop Pro Photo XI',
> 'Host Version': u'11.00'
> }
>
> def Do(Environment):
> # EnableOptimizedScriptUndo
> App.Do( Environment, 'EnableOptimizedScriptUndo', {
> 'GeneralSettings': {
> 'ExecutionMode': App.Constants.ExecutionMode.Default,
> 'AutoActionMode': App.Constants.AutoActionMode.Match,
> 'Version': ((11,0,0),1)
> }
> })
>
> # Polaroid..._Dust && Scratch Removal
> App.Do( Environment, 'Polaroid..._Dust && Scratch Removal', {
> 'GeneralSettings': {
> 'ExecutionMode': App.Constants.ExecutionMode.Default,
> 'AutoActionMode': App.Constants.AutoActionMode.Match,
> 'Version': ((11,0,0),1)
> },
> 'DefaultProperties': []
> })
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|