This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > August 2006 > Problem with Text Change Attributes 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 Problem with Text Change Attributes Script
Patricia

2006-08-12, 6:35 am

I'm trying to run Gary Barton's Text Change Attributes Script in PSP9 but
I cannot get it to work. I keep getting an error as below, would appreciate
any advise please....Pat

Executing RunScript
Executing ReturnVectorObjectProperties
Executing ReturnLayerProperties
Executing SelectTool
Executing SelectPreviousTool
Executing GetCommandInfo
Traceback (most recent call last):
File "C:\Documents and Settings\Pat\My Documents\My PSP
Files\Scripts-Restricted\Pixelnook\Text Change Attributes.PspScript", line
24, in Do
textInfo = GetToolInfo(Environment, 'Text')['Segments'][0]
TypeError: unsubscriptable object

Script 'Text Change Attributes' has completed with an error.







Carrie Osmo

2006-08-14, 3:38 am

I get the same error Pat
sorry I can't fix it :(( mind you it isn't a horse so
I wouldn't know how to even start to fix it.. LOL
As I said in the scrapbook the script output probably tells the
scripting-whizzes everything they need to know but not me.

LastStart = None # put it off the canvas
for Seg in TextObj['Segments']:
if Seg['Start'] is not None and \
Seg['Start'] != (0.0, 0.0) and \
Seg['Start'] != LastStart:
if CurrentLine is not None:
Lines.append( CurrentLine )
CurrentLine = ''
LastStart = Seg['Start']

doesn't seem to find the object "segments" it is probably
a Python mystery library thing ;o) too much for my very small brain.

carrie

"Patricia" <wattspatara@NOSPAMXXXXXXXXXX> wrote in message news:44dd8c61$1_1@cnews...
> I'm trying to run Gary Barton's Text Change Attributes Script in PSP9 but I cannot get it to work. I keep getting an error as
> below, would appreciate any advise please....Pat
>
> Executing RunScript
> Executing ReturnVectorObjectProperties
> Executing ReturnLayerProperties
> Executing SelectTool
> Executing SelectPreviousTool
> Executing GetCommandInfo
> Traceback (most recent call last):
> File "C:\Documents and Settings\Pat\My Documents\My PSP Files\Scripts-Restricted\Pixelnook\Text Change Attributes.PspScript",
> line 24, in Do
> textInfo = GetToolInfo(Environment, 'Text')['Segments'][0]
> TypeError: unsubscriptable object
>
> Script 'Text Change Attributes' has completed with an error.
>
>
>
>
>
>
>



Spandex Rutabaga

2006-08-14, 3:38 am

Patricia wrote:
>
> I'm trying to run Gary Barton's Text Change Attributes Script in PSP9 but
> I cannot get it to work. I keep getting an error as below, would appreciate
> any advise please....Pat
>
> Executing RunScript
> Executing ReturnVectorObjectProperties
> Executing ReturnLayerProperties
> Executing SelectTool
> Executing SelectPreviousTool
> Executing GetCommandInfo
> Traceback (most recent call last):
> File "C:\Documents and Settings\Pat\My Documents\My PSP
> Files\Scripts-Restricted\Pixelnook\Text Change Attributes.PspScript", line
> 24, in Do
> textInfo = GetToolInfo(Environment, 'Text')['Segments'][0]
> TypeError: unsubscriptable object
>
> Script 'Text Change Attributes' has completed with an error.


Most probably some aspect of how text is described has changed
between PSP 8 and PSP 9. This is likely to be discussed in the
scripting documentation available here:
http://www.jasc.com/support/custome...9components.asp
I don't really have time to try and compare the PSP 8 documentation
(assuming I have it) with PSP 9 documentation. Suz might know off
hand though.
Patricia

2006-08-14, 6:38 am

Thanks Carrie for taking the time. I guessed it might have been due to the
different versions but couldn't run a test as haven't reinstalled 8. Wish
there was some way to do it manually though as a group instead of one by
one. Will just have to make sure whatever font and size I pick this time I'm
happy with....Pat


"Carrie Osmo" <c_osmo@NOspamcop.net> wrote in message
news:44e00124_3@cnews...
>I get the same error Pat
> sorry I can't fix it :(( mind you it isn't a horse so
> I wouldn't know how to even start to fix it.. LOL
> As I said in the scrapbook the script output probably tells the
> scripting-whizzes everything they need to know but not me.
>
> LastStart = None # put it off the canvas
> for Seg in TextObj['Segments']:
> if Seg['Start'] is not None and \
> Seg['Start'] != (0.0, 0.0) and \
> Seg['Start'] != LastStart:
> if CurrentLine is not None:
> Lines.append( CurrentLine )
> CurrentLine = ''
> LastStart = Seg['Start']
>
> doesn't seem to find the object "segments" it is probably
> a Python mystery library thing ;o) too much for my very small brain.
>
> carrie
>
> "Patricia" <wattspatara@NOSPAMXXXXXXXXXX> wrote in message
> news:44dd8c61$1_1@cnews...
>
>



Patricia

2006-08-14, 6:38 am


..
"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:44E00F2A.D2879045@agabatur.xednaps...
> Patricia wrote:
>
> Most probably some aspect of how text is described has changed
> between PSP 8 and PSP 9. This is likely to be discussed in the
> scripting documentation available here:
> http://www.jasc.com/support/custome...9components.asp
> I don't really have time to try and compare the PSP 8 documentation
> (assuming I have it) with PSP 9 documentation. Suz might know off
> hand though.


Thanks Spandex for taking the time to answer. I guessed it probably would be
due to the difference in 9 to 8 but thought maybe I was doing something
wrong or there maybe is a workaround to group text to change the font etc.
that I hadn't learnt about...Pat


SuzShook

2006-08-14, 6:55 pm

Hi, Patricia. Saw this post the other day, and believe it or not, have been
working on it ever since!!!! I've been trying to determine just what needs
to be changed in that script to make it work in PSP 9 and beyond, and
FINALLY, early this morning, got it working. Now, I'm waiting for Gary
Barton's permission to modify his script, as he's the original author. Once
I get that, I'll post the converted script, that DOES work in PSP 9 and X.
As others have noted, text changed between PSP 8 and PSP 9, and that's the
problem. However, keep your fingers crossed, and perhaps we'll have a new
script later today. Suz
--
Suz Shook
C-Tech Volunteer


Patricia wrote:
> I'm trying to run Gary Barton's Text Change Attributes Script in
> PSP9 but I cannot get it to work. I keep getting an error as below,
> would appreciate any advise please....Pat
>
> Executing RunScript
> Executing ReturnVectorObjectProperties
> Executing ReturnLayerProperties
> Executing SelectTool
> Executing SelectPreviousTool
> Executing GetCommandInfo
> Traceback (most recent call last):
> File "C:\Documents and Settings\Pat\My Documents\My PSP
> Files\Scripts-Restricted\Pixelnook\Text Change Attributes.PspScript",
> line 24, in Do
> textInfo = GetToolInfo(Environment, 'Text')['Segments'][0]
> TypeError: unsubscriptable object
>
> Script 'Text Change Attributes' has completed with an error.



Spandex Rutabaga

2006-08-14, 6:55 pm

SuzShook wrote:

> I've been trying to determine just what needs
> to be changed in that script to make it work in PSP 9 and beyond, and
> FINALLY, early this morning, got it working.


Somehow I thought that might be happening :) Well done.
Patricia

2006-08-15, 3:37 am

That's fantastic news Suz. Thanks so much for taking the time to do this. I
thought maybe my post wasn't being seen by others. I'm sure it is one
script that can be used often in scrapbooking. I know as my work progresses
I often change my mind about the font choice or size or colour. It wastes so
much time doing each one separately. Will keep my fingers crossed....Pat


"SuzShook" <suzshook@adelphia.net> wrote in message
news:44e063d8$1_3@cnews...
> Hi, Patricia. Saw this post the other day, and believe it or not, have
> been working on it ever since!!!! I've been trying to determine just what
> needs to be changed in that script to make it work in PSP 9 and beyond,
> and FINALLY, early this morning, got it working. Now, I'm waiting for
> Gary Barton's permission to modify his script, as he's the original
> author. Once I get that, I'll post the converted script, that DOES work
> in PSP 9 and X. As others have noted, text changed between PSP 8 and PSP
> 9, and that's the problem. However, keep your fingers crossed, and
> perhaps we'll have a new script later today. Suz
> --
> Suz Shook
> C-Tech Volunteer
>
>
> Patricia wrote:
>
>



SuzShook

2006-08-15, 6:43 pm

I contacted Gary Barton, the original author, and he's created a new version
that works in all versions of PSP. I've asked him to post it here in the
Scripting newsgroup, or to place it on his site. Should have either the
script, or some more information about how to obtain it, some time today or
tomorrow. Gary's new version works like a charm! Suz
--
Suz Shook
C-Tech Volunteer


Patricia wrote:[color=darkred]
> That's fantastic news Suz. Thanks so much for taking the time to do
> this. I thought maybe my post wasn't being seen by others. I'm sure
> it is one script that can be used often in scrapbooking. I know as my
> work progresses I often change my mind about the font choice or size
> or colour. It wastes so much time doing each one separately. Will
> keep my fingers crossed....Pat
>
> "SuzShook" <suzshook@adelphia.net> wrote in message
> news:44e063d8$1_3@cnews...


Carrie Osmo

2006-08-15, 6:43 pm

Say hello to him and tell him we miss him ;o((
thanks Suz
carrie
"SuzShook" <suzshook@adelphia.net> wrote in message news:44e1a95d$1_3@cnews...
>I contacted Gary Barton, the original author, and he's created a new version that works in all versions of PSP. I've asked him to
>post it here in the Scripting newsgroup, or to place it on his site. Should have either the script, or some more information about
>how to obtain it, some time today or tomorrow. Gary's new version works like a charm! Suz
> --
> Suz Shook
> C-Tech Volunteer
>
>
> Patricia wrote:
>
>



SuzShook

2006-08-15, 6:43 pm

underprocessable
Spandex Rutabaga

2006-08-16, 3:55 am

SuzShook wrote:
>
> Gary has given me permission to post the new version of his script here in
> the newsgroup - this is the 0.2 version of the script. For those
> interested, Gary has also added a bit of documentation in the script. Also,
> for those using this script in PSP X, you might want to change the Host
> Version parameter from this:
>
> 'Host Version': '8.10'
>
> to this:
>
> 'Host Version': ''
>
> Otherwise, on repeated runs, you will see the text shrinking (or growing)
> unpredictably - one of the joys of text in PSP X! This version works great
> in PSP 8, 9, and X. Have fun! Suz


Thanks to you and Gary.
Carrie Osmo

2006-08-16, 3:55 am

Thanks Suz
and a big thanks to Gary as well..
I don't remember telling him he could get a life
and stop writing scripts for us ungrateful users ;o))
much appreciated you guys
carrie
"SuzShook" <suzshook@adelphia.net> wrote in message news:44e229ed$1_2@cnews...
> Gary has given me permission to post the new version of his script here in the newsgroup - this is the 0.2 version of the script.
> For those interested, Gary has also added a bit of documentation in the script. Also, for those using this script in PSP X, you
> might want to change the Host Version parameter from this:
>
> 'Host Version': '8.10'
>
> to this:
>
> 'Host Version': ''
>
> Otherwise, on repeated runs, you will see the text shrinking (or growing) unpredictably - one of the joys of text in PSP X! This
> version works great in PSP 8, 9, and X. Have fun! Suz
>
> SuzShook wrote:
>
>
>



Patricia

2006-08-16, 7:02 am

Thank you so much Suz and if you are conversing with Gary please pass on my
appreciation. I feel like at kid at Christmas having this script back again
to use....Pat


"SuzShook" <suzshook@adelphia.net> wrote in message
news:44e229ed$1_2@cnews...
> Gary has given me permission to post the new version of his script here in
> the newsgroup - this is the 0.2 version of the script. For those
> interested, Gary has also added a bit of documentation in the script.
> Also, for those using this script in PSP X, you might want to change the
> Host Version parameter from this:
>
> 'Host Version': '8.10'
>
> to this:
>
> 'Host Version': ''
>
> Otherwise, on repeated runs, you will see the text shrinking (or growing)
> unpredictably - one of the joys of text in PSP X! This version works
> great in PSP 8, 9, and X. Have fun! Suz
>
> SuzShook wrote:
>
>
>



SuzShook

2006-08-16, 6:44 pm

You're welcome to everyone. Will pass on the gratitude to Gary! Suz

Patricia wrote:[color=darkred]
> Thank you so much Suz and if you are conversing with Gary please pass
> on my appreciation. I feel like at kid at Christmas having this
> script back again to use....Pat
>
>
> "SuzShook" <suzshook@adelphia.net> wrote in message
> news:44e229ed$1_2@cnews...


Sponsored Links


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