This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > September 2007 > Quandry with script in PSPx2 - Need a Script Savy person





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 Quandry with script in PSPx2 - Need a Script Savy person
RoseW

2007-09-06, 6:18 pm

underprocessable
Conal O'Neill

2007-09-06, 6:18 pm


"RoseW" <wdmn@nshurontel.on.ca> wrote in message news:46dec1e3_3@cnews...
> The Faramir Scripts will not load in PSPx2
> The error message in the script output pallet is :
>
> Traceback(most recent call last):
> File "<string>",line 27, in<module>
> File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
> Libraries\Faramir\SupportFunctions.py",line 18
> Syntax Error:
>

Line 18 in the SupportFunctions.py is:
# - New function: FaramirPanoramaRotate rotates a 360° panoramic image





Line 522 in the SupportFunctions.py is:

# Purpose: rotates a 360° panoramic image



Apparantly the degree symbol is what is causing the error message. Remove
the two lines from the SupportFunctions.py and the script will run.




JoeB

2007-09-06, 6:18 pm

"Conal O'Neill" <conalo46@remove.verizon.net> wrote in
news:46ded411$1_2@cnews:

>
> "RoseW" <wdmn@nshurontel.on.ca> wrote in message
> news:46dec1e3_3@cnews...
> Line 18 in the SupportFunctions.py is:
> # - New function: FaramirPanoramaRotate rotates a 360° panoramic
> image
>
>
>
>
>
> Line 522 in the SupportFunctions.py is:
>
> # Purpose: rotates a 360° panoramic image
>
>
>
> Apparantly the degree symbol is what is causing the error message.
> Remove the two lines from the SupportFunctions.py and the script will
> run.


Or just replace the degree symbol with the word degree. Good catch,
though!

Regards,

JoeB
RoseW

2007-09-06, 6:18 pm

Conal O'Neill wrote:
| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
| news:46dec1e3_3@cnews...
|| The Faramir Scripts will not load in PSPx2
|| The error message in the script output pallet is :
||
|| Traceback(most recent call last):
|| File "<string>",line 27, in<module>
|| File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
|| Libraries\Faramir\SupportFunctions.py",line 18
|| Syntax Error:
||
| Line 18 in the SupportFunctions.py is:
| # - New function: FaramirPanoramaRotate rotates a 360° panoramic
| image
| Line 522 in the SupportFunctions.py is:
|
| # Purpose: rotates a 360° panoramic image

| Apparantly the degree symbol is what is causing the error message.
| Remove the two lines from the SupportFunctions.py and the script will
| run.

Thank you, thank you! I did count the lines properly but I had no
understanding of what might be wrong since the exact script runs without a
blip in PSP10 and in Psp9. I have made several copies for specific sized
exports which will all have to have the edit.
I would miss having this script that resizes and with my edit doesn't make a
border or a final save because a final sharpening is not required with this
stair step method..

Hopefuly this change of the symbol or insert of the word 'degree' will not
create a 'blip' with PSPx. This trial download is accessing the common
MyPSP folder used by PspX

Rose

--
http://rwgallery.webng.com/index.html



RoseW

2007-09-06, 6:18 pm

JoeB wrote:
| "Conal O'Neill" <conalo46@remove.verizon.net> wrote in
| news:46ded411$1_2@cnews:
|
||
|| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
|| news:46dec1e3_3@cnews...
||| The Faramir Scripts will not load in PSPx2
||| The error message in the script output pallet is :
|||
||| Traceback(most recent call last):
||| File "<string>",line 27, in<module>
||| File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
||| Libraries\Faramir\SupportFunctions.py",line 18
||| Syntax Error:
|||
|| Line 18 in the SupportFunctions.py is:
|| # - New function: FaramirPanoramaRotate rotates a 360° panoramic
|| image
||
||
||
||
||
|| Line 522 in the SupportFunctions.py is:
||
|| # Purpose: rotates a 360° panoramic image
||
||
||
|| Apparantly the degree symbol is what is causing the error message.
|| Remove the two lines from the SupportFunctions.py and the script will
|| run.
|
| Or just replace the degree symbol with the word degree. Good catch,
| though!
|
| Regards,
|
| JoeB
If I use the word degree then that facililty is still there IF ever I do a
panoramic image <lol!> I'm going to start the edits on the least valuable
copy that I have <grin> Then I'll see if both PSPx and this trial download
are happy with the contents.
Rose


--
http://rwgallery.webng.com/index.html


JoeB

2007-09-06, 6:18 pm

"RoseW" <wdmn@nshurontel.on.ca> wrote in news:46df0150$3_2@cnews:

> JoeB wrote:
>| "Conal O'Neill" <conalo46@remove.verizon.net> wrote in
>| news:46ded411$1_2@cnews:
>|
>||
>|| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
>|| news:46dec1e3_3@cnews...
>||| The Faramir Scripts will not load in PSPx2
>||| The error message in the script output pallet is :
>|||
>||| Traceback(most recent call last):
>||| File "<string>",line 27, in<module>
>||| File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
>||| Libraries\Faramir\SupportFunctions.py",line 18
>||| Syntax Error:
>|||
>|| Line 18 in the SupportFunctions.py is:
>|| # - New function: FaramirPanoramaRotate rotates a 360°
>|| panoramic image
>||
>||
>||
>||
>||
>|| Line 522 in the SupportFunctions.py is:
>||
>|| # Purpose: rotates a 360° panoramic image
>||
>||
>||
>|| Apparantly the degree symbol is what is causing the error message.
>|| Remove the two lines from the SupportFunctions.py and the script
>|| will run.
>|
>| Or just replace the degree symbol with the word degree. Good catch,
>| though!
>|
>| Regards,
>|
>| JoeB
> If I use the word degree then that facililty is still there IF ever I
> do a panoramic image <lol!> I'm going to start the edits on the least
> valuable copy that I have <grin> Then I'll see if both PSPx and this
> trial download are happy with the contents.
> Rose


I believe you will have to put copies of both of those Faramir Support
Function files in the Python Libraries folder of X2 before you can run
the script. So make a copy of the files that you have in your Python
Libraries folder in your previous version, paste them into the X2 Python
Librairies folder, and then edit those copies.

Not that it should make any difference, as they should run properly with
the other versions also with that edit.

Regards,

JoeB
JoeB

2007-09-06, 6:18 pm

"RoseW" <wdmn@nshurontel.on.ca> wrote in news:46df0150$1_2@cnews:

> Conal O'Neill wrote:
>| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
>| news:46dec1e3_3@cnews...
>|| The Faramir Scripts will not load in PSPx2
>|| The error message in the script output pallet is :
>||
>|| Traceback(most recent call last):
>|| File "<string>",line 27, in<module>
>|| File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
>|| Libraries\Faramir\SupportFunctions.py",line 18
>|| Syntax Error:
>||
>| Line 18 in the SupportFunctions.py is:
>| # - New function: FaramirPanoramaRotate rotates a 360° panoramic
>| image
>| Line 522 in the SupportFunctions.py is:
>|
>| # Purpose: rotates a 360° panoramic image
>
>| Apparantly the degree symbol is what is causing the error message.
>| Remove the two lines from the SupportFunctions.py and the script will
>| run.
>
> Thank you, thank you! I did count the lines properly but I had no
> understanding of what might be wrong since the exact script runs
> without a blip in PSP10 and in Psp9. I have made several copies for
> specific sized exports which will all have to have the edit.
> I would miss having this script that resizes and with my edit doesn't
> make a border or a final save because a final sharpening is not
> required with this stair step method..
>
> Hopefuly this change of the symbol or insert of the word 'degree' will
> not create a 'blip' with PSPx. This trial download is accessing the
> common MyPSP folder used by PspX
>
> Rose


Rose, the FaramirSupportFunction.py and FaramirSupportFunction.pyc files
are in the Python Librarie folder under the folder in Program Files
where PSPX (or the Jasc Software>PSP9 if you have PSP9) are installed.
That's where they have to be for the program to work. Just copy those
two files, paste them into the Python Libraries of the X2 installation,
and edit the .py file as suggested. It won't effect the other
installations.

Regards,

JoeB
Conal O'Neill

2007-09-06, 6:18 pm


"RoseW" <wdmn@nshurontel.on.ca> wrote in message news:46df0150$1_2@cnews...

> Thank you, thank you! I did count the lines properly but I had no
> understanding of what might be wrong since the exact script runs without a
> blip in PSP10 and in Psp9. I have made several copies for specific sized
> exports which will all have to have the edit.
> I would miss having this script that resizes and with my edit doesn't make
> a
> border or a final save because a final sharpening is not required with
> this
> stair step method..
>
> Hopefuly this change of the symbol or insert of the word 'degree' will not
> create a 'blip' with PSPx. This trial download is accessing the common
> MyPSP folder used by PspX
>


No problem in changing or removing that I am aware of. Both are from comment
lines that should not effect the running of any scripts using this .py file.


RoseW

2007-09-06, 10:17 pm

Conal O'Neill wrote:
| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
| news:46df0150$1_2@cnews...
|
|| Thank you, thank you! I did count the lines properly but I had no
|| understanding of what might be wrong since the exact script runs
|| without a blip in PSP10 and in Psp9. I have made several copies for
|| specific sized exports which will all have to have the edit.
|| I would miss having this script that resizes and with my edit
|| doesn't make a
|| border or a final save because a final sharpening is not required
|| with this
|| stair step method..
||
|| Hopefuly this change of the symbol or insert of the word 'degree'
|| will not create a 'blip' with PSPx. This trial download is
|| accessing the common MyPSP folder used by PspX
||
|
| No problem in changing or removing that I am aware of. Both are from
| comment lines that should not effect the running of any scripts using
| this .py file.

Yes, there were two comments with the degree symbol. Further down in the
property sheet at about line 536 the function had a similar description.
Immediately after changing that symbol to the word 'degree' the scripts ran
as usual. Perhaps things are more explicit in this version X2 since I've had
that same file in the Python file in version X and version 9.
Rose

--
http://rwgallery.webng.com/index.html


RoseW

2007-09-06, 10:17 pm

JoeB wrote:
| "RoseW" <wdmn@nshurontel.on.ca> wrote in news:46df0150$1_2@cnews:
|
|| Conal O'Neill wrote:
||| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
||| news:46dec1e3_3@cnews...
|||| The Faramir Scripts will not load in PSPx2
|||| The error message in the script output pallet is :
||||
|||| Traceback(most recent call last):
|||| File "<string>",line 27, in<module>
|||| File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
|||| Libraries\Faramir\SupportFunctions.py",line 18
|||| Syntax Error:
||||
||| Line 18 in the SupportFunctions.py is:
||| # - New function: FaramirPanoramaRotate rotates a 360°
||| panoramic image
||| Line 522 in the SupportFunctions.py is:
|||
||| # Purpose: rotates a 360° panoramic image
||
||| Apparantly the degree symbol is what is causing the error message.
||| Remove the two lines from the SupportFunctions.py and the script
||| will run.
||
|| Thank you, thank you! I did count the lines properly but I had no
|| understanding of what might be wrong since the exact script runs
|| without a blip in PSP10 and in Psp9. I have made several copies for
|| specific sized exports which will all have to have the edit.
|| I would miss having this script that resizes and with my edit doesn't
|| make a border or a final save because a final sharpening is not
|| required with this stair step method..
||
|| Hopefuly this change of the symbol or insert of the word 'degree'
|| will not create a 'blip' with PSPx. This trial download is
|| accessing the common MyPSP folder used by PspX
||
|| Rose
|
| Rose, the FaramirSupportFunction.py and FaramirSupportFunction.pyc
| files are in the Python Librarie folder under the folder in Program
| Files where PSPX (or the Jasc Software>PSP9 if you have PSP9) are
| installed. That's where they have to be for the program to work.
| Just copy those two files, paste them into the Python Libraries of
| the X2 installation, and edit the .py file as suggested. It won't
| effect the other installations.
|
| Regards,
|
| JoeB

Yes that is what I had done initially but when it wouldn't run in X2 I went
to his site to download a fresh copy in zip format because his executable
doesn't give a choice to install elsewhere. Then I went through all the
thought processes of what I might have done incorrectly. The author isn't
actively supporting this script pack at the moment so it didn't appear to be
a productive choice trying to contact him. Finally I concluded that I could
'believe the script error report' <grin> but it didn't seem logical that a
comment could be causing a blockage but as it turned out line 18 WAS line 18
and that symbol retyped to be a word did the trick.
This script language looks to be more fiddly than html <grin>
Rose


--
http://rwgallery.webng.com/index.html


JoeB

2007-09-06, 10:17 pm

"RoseW" <wdmn@nshurontel.on.ca> wrote in news:46df2d73$2_2@cnews:

> JoeB wrote:
>| "RoseW" <wdmn@nshurontel.on.ca> wrote in news:46df0150$1_2@cnews:
>|
>|| Conal O'Neill wrote:
>||| "RoseW" <wdmn@nshurontel.on.ca> wrote in message
>||| news:46dec1e3_3@cnews...
>|||| The Faramir Scripts will not load in PSPx2
>|||| The error message in the script output pallet is :
>||||
>|||| Traceback(most recent call last):
>|||| File "<string>",line 27, in<module>
>|||| File "C:\Program files\Corel\Corel Paint Shop Pro Photo X2\Python
>|||| Libraries\Faramir\SupportFunctions.py",line 18
>|||| Syntax Error:
>||||
>||| Line 18 in the SupportFunctions.py is:
>||| # - New function: FaramirPanoramaRotate rotates a 360°
>||| panoramic image
>||| Line 522 in the SupportFunctions.py is:
>|||
>||| # Purpose: rotates a 360° panoramic image
>||
>||| Apparantly the degree symbol is what is causing the error message.
>||| Remove the two lines from the SupportFunctions.py and the script
>||| will run.
>||
>|| Thank you, thank you! I did count the lines properly but I had no
>|| understanding of what might be wrong since the exact script runs
>|| without a blip in PSP10 and in Psp9. I have made several copies for
>|| specific sized exports which will all have to have the edit.
>|| I would miss having this script that resizes and with my edit
>|| doesn't make a border or a final save because a final sharpening is
>|| not required with this stair step method..
>||
>|| Hopefuly this change of the symbol or insert of the word 'degree'
>|| will not create a 'blip' with PSPx. This trial download is
>|| accessing the common MyPSP folder used by PspX
>||
>|| Rose
>|
>| Rose, the FaramirSupportFunction.py and FaramirSupportFunction.pyc
>| files are in the Python Librarie folder under the folder in Program
>| Files where PSPX (or the Jasc Software>PSP9 if you have PSP9) are
>| installed. That's where they have to be for the program to work.
>| Just copy those two files, paste them into the Python Libraries of
>| the X2 installation, and edit the .py file as suggested. It won't
>| effect the other installations.
>|
>| Regards,
>|
>| JoeB
>
> Yes that is what I had done initially but when it wouldn't run in X2 I
> went to his site to download a fresh copy in zip format because his
> executable doesn't give a choice to install elsewhere. Then I went
> through all the thought processes of what I might have done
> incorrectly. The author isn't actively supporting this script pack at
> the moment so it didn't appear to be a productive choice trying to
> contact him. Finally I concluded that I could 'believe the script
> error report' <grin> but it didn't seem logical that a comment could
> be causing a blockage but as it turned out line 18 WAS line 18 and
> that symbol retyped to be a word did the trick. This script language
> looks to be more fiddly than html <grin> Rose


Yes, it does seem finicky. Normally a comment won't affect how a script
runs, but apparently the degree symbol isn't ignored even in a comment,
so it must have special meaning to Python and can only be used in non-
comment parts of the script Sort of like you can't use a question mark
in a file name in Windows and expect the file to work properly.

Regards,

JoeB

Tadjio

2007-09-07, 6:16 am

"JoeB" <mymail@myserver.com> wrote in message news:Xns99A3BAB0FFEEBJoeB@207.107.16.194...
> "RoseW" <wdmn@nshurontel.on.ca> wrote in news:46df2d73$2_2@cnews:
>
>
> Yes, it does seem finicky. Normally a comment won't affect how a script
> runs, but apparently the degree symbol isn't ignored even in a comment,
> so it must have special meaning to Python and can only be used in non-
> comment parts of the script Sort of like you can't use a question mark
> in a file name in Windows and expect the file to work properly.
>
> Regards,
>
> JoeB
>


I have come across the same issue in RL programming :-(
Strange characters in comments can do strange things....
--
Tadjio


Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews