This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > February 2006 > WatermarkFromTube script
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 |
WatermarkFromTube script
|
|
|
| Hi - I'm having trouble running Pixelnook's
http://pixelnook.home.comcast.net/Watermarks.htm WatermarkFromTube script
from a designated Tube - in PSPX. The script happily runs the "highlighted"
tube on the taskbar - as the script's default selection, but not the one
entered (upon editing as suggested by Pixelnook) into the script in lieu of
"My Watermark". Unfortunately Pixelnook's e-mail box appears to be full -
so no answer is available from the author. Pixelnook's site says the script
has been revised to run on PSP9. Shouldn't this script happily run in PSPX
as well? - Thanks.
| |
| Gary Barton 2006-02-08, 12:25 am |
| It may be that you are not specifying the name correctly.
# Specify the picture tube name. If the value is None, the
# currently selected picture tube will be used.
# pictureTubeName = "My Watermark"
pictureTubeName = None
If you want to use a tube whose name is xyz you modify the code to look like
this:
# Specify the picture tube name. If the value is None, the
# currently selected picture tube will be used.
# pictureTubeName = "My Watermark"
pictureTubeName = "xyz"
Corel may have broken something in PSPX too. I chose not to buy PSPX so I
haven't checked.
-Gary
"Rod" <rodhackett@bigpond.com> wrote in message news:43dc31e0$1_1@cnews...
> Hi - I'm having trouble running Pixelnook's
> http://pixelnook.home.comcast.net/Watermarks.htm WatermarkFromTube script
> from a designated Tube - in PSPX. The script happily runs the
> "highlighted" tube on the taskbar - as the script's default selection, but
> not the one entered (upon editing as suggested by Pixelnook) into the
> script in lieu of "My Watermark". Unfortunately Pixelnook's e-mail box
> appears to be full - so no answer is available from the author.
> Pixelnook's site says the script has been revised to run on PSP9.
> Shouldn't this script happily run in PSPX as well? - Thanks.
>
| |
|
| Hi Gary,
Thanks for the feedback. I've re-tried everything as suggested without
success, other than the default setting (where "pictureTubeName = None", and
the relevant tube is highlighted in the taskbar). In the hope it might
assist in determining the nature of the problem, and an easy solution, I've
copied some info below.
Thanks,
Rod.
--------------------------------------------------------------------------------
A. Extract of the script edited so that "pictureTubeName = tiger", which
produced a "NameError". Please note that the actual tube file used is
entitled "tiger.PspTube"; and I get the same results with other tubes
trialled: -
# WatermarkFromTube 0.2
#
# Check http://pixelnook.home.comcast.net for updates
# to this script.
from JascApp import *
def ScriptProperties():
return {
'Author': u'Gary Barton',
'Copyright': u'Copyright © 2003 Gary Barton',
'Description': u'Convert a picture tube into a watermark',
'Host': u'Paint Shop Pro',
'Host Version': u'8.10'
}
def Do(Environment):
# Specify the picture tube name. If the value is None, the
# currently selected picture tube will be used.
# pictureTubeName = "My Watermark"
pictureTubeName = tiger
# Choose style. 0=Retain style, 1=Emboss, 2=InnerBevel
style = 1 # Emboss
(etc.)
B. Copy of "Script Output" screen after running script edits to above
referenced "pictureTubeName" follow: -
1. = None: -
Executing RunScript
Executing GetNumber
Executing GetNumber
Executing SelectTool
Executing SelectPreviousTool
Executing GetCommandInfo
Executing New Raster Layer
Executing SelectLayer
Executing PictureTube
Executing ReturnLayerProperties
Executing RasterDeform
Executing Emboss
Executing RasterDeformFixup
Executing LayerMergeDown
Executing SelectLayer
Executing DeleteLayer
Script 'WatermarkFromTube' has completed successfully.
2. = tiger: -
Executing RunScript
Traceback (most recent call last):
File "C:\Program Files\Corel\Corel Paint Shop Pro
X\Scripts-Restricted\WatermarkFromTube.PspScript", line 21, in Do
pictureTubeName = tiger
NameError: global name 'tiger' is not defined
3. = tiger.Psptube: -
Executing RunScript
Traceback (most recent call last):
File "C:\Program Files\Corel\Corel Paint Shop Pro
X\Scripts-Restricted\WatermarkFromTube.PspScript", line 21, in Do
pictureTubeName = tiger.Psptube
NameError: global name 'tiger' is not defined
4. = tiger.PspTube: -
Executing RunScript
Traceback (most recent call last):
File "C:\Program Files\Corel\Corel Paint Shop Pro
X\Scripts-Restricted\WatermarkFromTube.PspScript", line 21, in Do
pictureTubeName = tiger.PspTube
NameError: global name 'tiger' is not defined
--------------------------------------------------------------------------------
"Gary Barton" <gmb@xxcutouttosendxxearthling.net> wrote in message
news:43dd02bf_3@cnews...
> It may be that you are not specifying the name correctly.
>
> # Specify the picture tube name. If the value is None, the
> # currently selected picture tube will be used.
> # pictureTubeName = "My Watermark"
> pictureTubeName = None
>
> If you want to use a tube whose name is xyz you modify the code to look
> like this:
>
> # Specify the picture tube name. If the value is None, the
> # currently selected picture tube will be used.
> # pictureTubeName = "My Watermark"
> pictureTubeName = "xyz"
>
> Corel may have broken something in PSPX too. I chose not to buy PSPX so I
> haven't checked.
>
> -Gary
>
>
> "Rod" <rodhackett@bigpond.com> wrote in message news:43dc31e0$1_1@cnews...
>
>
| |
|
| Oops. Sorry Gary. The solution was simple - to merely follow your
instructions properly. All my earlier efforts had left the quotation marks
off the pictureTubeName. In my ignorance, I had assumed you were using the
quotations as a form of emphasis - like using italics - but in fact they are
clearly a crucial part of the "grammar" of the "TubeName". Your script
works magnificently in PSPX - and a lovely script it is. Thank you again
for your feedback.
"Rod" <rh_au@yahoo.com.au> wrote in message news:43dda052_2@cnews...
> Hi Gary,
>
> Thanks for the feedback. I've re-tried everything as suggested without
> success, other than the default setting (where "pictureTubeName = None",
> and the relevant tube is highlighted in the taskbar). In the hope it
> might assist in determining the nature of the problem, and an easy
> solution, I've copied some info below.
>
> Thanks,
> Rod.
> --------------------------------------------------------------------------------
> A. Extract of the script edited so that "pictureTubeName = tiger", which
> produced a "NameError". Please note that the actual tube file used is
> entitled "tiger.PspTube"; and I get the same results with other tubes
> trialled: -
>
> # WatermarkFromTube 0.2
> #
> # Check http://pixelnook.home.comcast.net for updates
> # to this script.
>
> from JascApp import *
>
> def ScriptProperties():
> return {
> 'Author': u'Gary Barton',
> 'Copyright': u'Copyright © 2003 Gary Barton',
> 'Description': u'Convert a picture tube into a watermark',
> 'Host': u'Paint Shop Pro',
> 'Host Version': u'8.10'
> }
>
> def Do(Environment):
> # Specify the picture tube name. If the value is None, the
> # currently selected picture tube will be used.
> # pictureTubeName = "My Watermark"
> pictureTubeName = tiger
>
> # Choose style. 0=Retain style, 1=Emboss, 2=InnerBevel
> style = 1 # Emboss
>
> (etc.)
>
>
>
> B. Copy of "Script Output" screen after running script edits to above
> referenced "pictureTubeName" follow: -
>
> 1. = None: -
>
> Executing RunScript
>
> Executing GetNumber
>
> Executing GetNumber
>
> Executing SelectTool
>
> Executing SelectPreviousTool
>
> Executing GetCommandInfo
>
> Executing New Raster Layer
>
> Executing SelectLayer
>
> Executing PictureTube
>
> Executing ReturnLayerProperties
>
> Executing RasterDeform
>
> Executing Emboss
>
> Executing RasterDeformFixup
>
> Executing LayerMergeDown
>
> Executing SelectLayer
>
> Executing DeleteLayer
>
> Script 'WatermarkFromTube' has completed successfully.
>
> 2. = tiger: -
>
> Executing RunScript
>
> Traceback (most recent call last):
>
> File "C:\Program Files\Corel\Corel Paint Shop Pro
> X\Scripts-Restricted\WatermarkFromTube.PspScript", line 21, in Do
>
> pictureTubeName = tiger
>
> NameError: global name 'tiger' is not defined
>
> 3. = tiger.Psptube: -
>
> Executing RunScript
>
> Traceback (most recent call last):
>
> File "C:\Program Files\Corel\Corel Paint Shop Pro
> X\Scripts-Restricted\WatermarkFromTube.PspScript", line 21, in Do
>
> pictureTubeName = tiger.Psptube
>
> NameError: global name 'tiger' is not defined
>
> 4. = tiger.PspTube: -
>
> Executing RunScript
>
> Traceback (most recent call last):
>
> File "C:\Program Files\Corel\Corel Paint Shop Pro
> X\Scripts-Restricted\WatermarkFromTube.PspScript", line 21, in Do
>
> pictureTubeName = tiger.PspTube
>
> NameError: global name 'tiger' is not defined
> --------------------------------------------------------------------------------
>
> "Gary Barton" <gmb@xxcutouttosendxxearthling.net> wrote in message
> news:43dd02bf_3@cnews...
>
>
| |
| Gary Barton 2006-02-08, 12:25 am |
| Thanks. I'm glad you got it to work.
-Gary
"Rod" <rh_au@yahoo.com.au> wrote in message news:43dda36b_2@cnews...
> Oops. Sorry Gary. The solution was simple - to merely follow your
> instructions properly. All my earlier efforts had left the quotation
> marks off the pictureTubeName. In my ignorance, I had assumed you were
> using the quotations as a form of emphasis - like using italics - but in
> fact they are clearly a crucial part of the "grammar" of the "TubeName".
> Your script works magnificently in PSPX - and a lovely script it is.
> Thank you again for your feedback.
>
>
>
> "Rod" <rh_au@yahoo.com.au> wrote in message news:43dda052_2@cnews...
>
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|