This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > June 2006 > Caption for photo
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]
|
|
| Sharon 2006-06-08, 7:39 pm |
| Is there a script that labels a picture on a narrow white strip at the
bottom of the picture?
| |
|
| "Sharon" <ssmith@cox.net> wrote in news:44859b43$1_1@cnews:
> Is there a script that labels a picture on a narrow white strip
at the
> bottom of the picture?
>
Go to Howard's site at the link below, go to the PSP Scripts page,
and check out the Name Date script.
http://www.sheilsoft.com/
Regards,
JoeB
| |
| Sharon 2006-06-08, 7:39 pm |
|
"JoeB" <myemail@yahoo.com> wrote in message
news:Xns97DA5F954E7A6JoeB@216.191.232.194...
> "Sharon" <ssmith@cox.net> wrote in news:44859b43$1_1@cnews:
>
> at the
>
> Go to Howard's site at the link below, go to the PSP Scripts page,
> and check out the Name Date script.
>
> http://www.sheilsoft.com/
>
> Regards,
>
> Joe
That works, but adds to the size of the picture.
| |
|
| "Sharon" <ssmith@cox.net> wrote in news:4485a12b$1_3@cnews:
>
> "JoeB" <myemail@yahoo.com> wrote in message
> news:Xns97DA5F954E7A6JoeB@216.191.232.194...
strip[color=darkred]
page,[color=darkred]
>
> That works, but adds to the size of the picture.
>
Howard reads this group, so might come along with a revised script
that puts the white strip at the bottom of the picture. This will,
of course, cover up a bit of the picture.
Regards,
JoeB
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| Sharon wrote:
> That works, but adds to the size of the picture.
How else do you propose to put "a narrow white strip at the bottom
of the picture" without covering some of the picture? Perhaps you
don't care if the picture is covered so that you can't see something
important. If so, you need to make that clear and you need to specify
what fraction of the image you can put up with being covered. In
other words you have to define what "narrow" means to you.
| |
| Sharon 2006-06-08, 7:39 pm |
|
"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:4485E7B4.C917BEDB@agabatur.xednaps...
> Sharon wrote:
>
>
> How else do you propose to put "a narrow white strip at the bottom
> of the picture" without covering some of the picture? Perhaps you
> don't care if the picture is covered so that you can't see something
> important. If so, you need to make that clear and you need to specify
> what fraction of the image you can put up with being covered. In
> other words you have to define what "narrow" means to you.
I'd pick 3/8th inch to mean "narrow" and no I wouldn't care if the bottom
of the picture was covered up.
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| Sharon wrote:
>
> "Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
> news:4485E7B4.C917BEDB@agabatur.xednaps...
>
> I'd pick 3/8th inch to mean "narrow" and no I wouldn't care if the bottom
> of the picture was covered up.
I'm sorry to be a pain, but digital image sizes aren't measured in
physical units like inches. They are measured in pixels instead.
Inches only mean something when you print and they mean absolutely
nothing for the image displayed on screen. Printed inches are
related to pixels through a conversion factor called resolution.
Without knowing the resolution you use it is impossible to convert
your desires into image pixels. By the way because resolution is
a completely arbitrary conversion factor, in one image it may be
such that 3/8th of an inch covers the whole image and in another
3/8th of an inch may be too few pixels to put any text in. I think
you would care if you couldn't read the text or if the strip ended
up covering the whole image.
| |
| SuzShook 2006-06-08, 7:39 pm |
| underprocessable | |
| Sharon 2006-06-08, 7:39 pm |
| Could the white space be twice as high? The letters are bigger than the
white space. Thanks for your time.
--Sharon
"SuzShook" <suzshook@adelphia.net> wrote in message news:4486d077_1@cnews...
>
> Try this script, Sharon. Let me know if you need some adjustments. Suz
> --
> Suz Shook
> C-Tech Volunteer
>
>
> Sharon wrote:
>
>
>
| |
| SuzShook 2006-06-08, 7:39 pm |
| underprocessable | |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:4486f14f$1_3
@cnews:
> What version of PSP are you running, Sharon? I've increased
that
> space - let me know if you need it larger. And I can also
add a
> Flatten step, if you wish. Suz
>
> Sharon wrote:
Hi Suz,
I'm don't know if I'd find a use for this script but tested it
anyway in v.9 (trying both of them). I get the following error:
Executing RunScript
Executing New Vector Layer
Executing SelectLayer
Executing New Vector Layer
Executing SelectLayer
Traceback (most recent call last):
File "C:\Documents and Settings\Joe Belland\My Documents\My PSP
Files\Scripts-Restricted\ss-AddCaption_9.PspScript", line 189, in
Do
App.Do( Environment, 'TextEx', {
JascApp.ObjectNotFound: Object not found
Script 'ss-AddCaption_9' has completed with an error.
I mention this because I have had other scripts give me an error
at a line where there is 'TextEx'. Is this something that is not
recognized in v.9 but only v.X and, if so, is there a substitute
code?
Regards,
JoeB
[snipped for brevity]
| |
| SuzShook 2006-06-08, 7:39 pm |
|
JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:4486f14f$1_3
> @cnews:
>
>
> Hi Suz,
>
> I'm don't know if I'd find a use for this script but tested it
> anyway in v.9 (trying both of them). I get the following error:
>
> Executing RunScript
> Executing New Vector Layer
> Executing SelectLayer
> Executing New Vector Layer
> Executing SelectLayer
> Traceback (most recent call last):
> File "C:\Documents and Settings\Joe Belland\My Documents\My PSP
> Files\Scripts-Restricted\ss-AddCaption_9.PspScript", line 189, in
> Do
> App.Do( Environment, 'TextEx', {
> JascApp.ObjectNotFound: Object not found
>
> Script 'ss-AddCaption_9' has completed with an error.
>
>
>
> I mention this because I have had other scripts give me an error
> at a line where there is 'TextEx'. Is this something that is not
> recognized in v.9 but only v.X and, if so, is there a substitute
> code?
>
> Regards,
>
> JoeB
>
>
>
> [snipped for brevity]
Don't know what that is, Joe. I tested the script in 8, 9 nad X, and had no
problems. Are you running PSP 9 with all the patches (9.011)? Suz
| |
| Ray Hoffmeister 2006-06-08, 7:39 pm |
|
"SuzShook" <suzshook@adelphia.net> wrote in message
news:44871aee$1_3@cnews...
>
>
> JoeB wrote:
>
> Don't know what that is, Joe. I tested the script in 8, 9 nad X, and had
> no problems. Are you running PSP 9 with all the patches (9.011)? Suz
--------------------------------------------------------------------------------------------------
As info.
I ran it on uptodate version of PSP 9 and it runs fine.
Ray Hf
>
>
| |
| Vern Stump 2006-06-08, 7:39 pm |
| SuzShook wrote:
> JoeB wrote:
>
> Don't know what that is, Joe. I tested the script in 8, 9 nad X, and
> had no problems. Are you running PSP 9 with all the patches (9.011)?
> Suz
Suz:
Ran AOK in versions 8,9,X.
Thanks, Vern
| |
| SuzShook 2006-06-08, 7:39 pm |
| Thanks for the update, Vern. Runs OK for me, too, in all three versions.
Joe much have some system peculiarity! Suz
Vern Stump wrote:
> SuzShook wrote:
>
> Suz:
> Ran AOK in versions 8,9,X.
> Thanks, Vern
| |
| Sharon 2006-06-08, 7:39 pm |
| underprocessable | |
| SuzShook 2006-06-08, 7:39 pm |
| Text in PSP X is always a crap shoot. I have the Size set to 10 for PSP X
in that script, but that's in PIXELS, not POINTS. So just be sure your Text
Tool Options has the Units set to Pixels, and you should be ok.
Unfortunately, there is no way to determine whether Pixels or Points is set,
nor is there a way to designate Points of Pixels within a script. I believe
the system just picks it up from your Tool Options. Anyway, try resetting
the Units and see if that helps. Suz
Sharon wrote:[color=darkred]
> Not at all sure where my first post went......
>
> I have PSP X with all the updates. That one worked fine but the
> black print is a
> little taller than the white space. See attached.
> I believe it flattens when I save it.
> --Sharon
>
>
> "SuzShook" <suzshook@adelphia.net> wrote in message
> news:4486f14f$1_3@cnews...
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:44874bbf$1_3
@cnews:
> Thanks for the update, Vern. Runs OK for me, too, in all three
> versions. Joe much have some system peculiarity! Suz
>
I must tend to agree. I can't remember the last script that caused
problems at that particular command, but it wasn't all that long
ago and, IIRC, it got fixed somehow. This particular script, as I
said, is not one I'd likely use as it covers part of the image, but
when I have time to just troubleshoot I'll see if I can dig up any
other scripts that have that text ex code and see what happens.
At least the stuff I use is working :-)
Regards,
JoeB
> Vern Stump wrote:
>
>
>
| |
| Sharon 2006-06-08, 7:39 pm |
| That did the trick!! Thanks a bunch.
--Sharon
"SuzShook" <suzshook@adelphia.net> wrote in message
news:448782c4$1_3@cnews...
> Text in PSP X is always a crap shoot. I have the Size set to 10 for PSP X
> in that script, but that's in PIXELS, not POINTS. So just be sure your
> Text Tool Options has the Units set to Pixels, and you should be ok.
> Unfortunately, there is no way to determine whether Pixels or Points is
> set, nor is there a way to designate Points of Pixels within a script. I
> believe the system just picks it up from your Tool Options. Anyway, try
> resetting the Units and see if that helps. Suz
>
> Sharon wrote:
>
>
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| SuzShook wrote:
>
> Text in PSP X is always a crap shoot. I have the Size set to 10 for PSP X
> in that script, but that's in PIXELS, not POINTS. So just be sure your Text
> Tool Options has the Units set to Pixels, and you should be ok.
> Unfortunately, there is no way to determine whether Pixels or Points is set,
> nor is there a way to designate Points of Pixels within a script. I believe
> the system just picks it up from your Tool Options. Anyway, try resetting
> the Units and see if that helps. Suz
Would this work? You interrogate the image via the equivalent of
the Image Info command to get its resolution and save that. Using
Resize with resampling off set the resolution to 72 ppi. Now pixels
are points and the units don't matter. [*] Place the text and, once
that's done, using Resize set the resolution back to what it was.
[*] There may be some hinky stuff here. For example the character
height may be measured differently in PSP X compared to previous
versions. (I'm thinking of the locations of the lines defining the
top and the bottom of a character.) There might also be some use
made by PSP of the Windows display resolution setting, normally
taken to be 96. These things have been discussed at various times
but I can't remember the gist. Fred might have been the one who
looked into this most thoroughly (but I don't want to drop him in
it by mistake. Also Howard posted some kind of workaround to some
of these problems in one of his scripts.
| |
| Fred Hiltz 2006-06-08, 7:39 pm |
| Spandex Rutabaga wrote:
> SuzShook wrote:
[snip][color=darkred]
> There might also be some use made by PSP of the Windows
> display resolution setting, normally taken to be 96. These
> things have been discussed at various times but I can't
> remember the gist. Fred might have been the one who looked
> into this most thoroughly (but I don't want to drop him in
> it by mistake.
I did look into it, maybe not as thoroughly as others. It seems to
boil down to the use of the display resolution setting by PSP 8 and
9 in an apparent attempt to control the size in inches of text on
our monitors. We now know that to have been misguided.
The developers of PSP 10 got it right, IMO, abandoning the attempt
to make the screen and the printer work alike. Now pixels are
monitor pixels and--if you set the print resolution before setting
the text size--points are printed points. Too bad they did not
follow this through in the scripting API.
Dealing with this change in scripts is a chore; the price of
correcting the design error in PSP 8 and 9. Not everyone will agree
that 10 gets it right, I know. Perhaps Howard and Suz will set me
straight on this.
Hey Suz, the knowledge that you and Howard have scraped up would be
a article in Tips & Tricks. It would be a shame to let it get buried
in old newsgroup posts. I'd be willing to contribute, but you two
know the scripting part best.
--
Fred Hiltz, fhiltz at yahoo dot com
| |
| Fred Hiltz 2006-06-08, 7:39 pm |
| Fred Hiltz wrote:
[snip]
> the knowledge that you and Howard have scraped up
> would be a article in Tips & Tricks.
Uh, let's try that again, Fred.
the knowledge that you and Howard have scraped up would be a good
article in Tips & Tricks.
--
Fred Hiltz, fhiltz at yahoo dot com
| |
| Fabrice Roux 2006-06-08, 7:39 pm |
| In article <448800ad$1_1@cnews>, not@home.ca says...
> I did look into it, maybe not as thoroughly as others. It seems to
> boil down to the use of the display resolution setting by PSP 8 and
> 9 in an apparent attempt to control the size in inches of text on
> our monitors. We now know that to have been misguided.
Well it looks like this text issue will feed a lot of thread for a long
while.
I partially agree with your point of view. When I work on an image on my
computer I work by default in pixels. PSP8 only had the Text command that
works in pixels and still works in PSP9 and PSPX.
Introducing the TextEx command in PSP9 is a good thing. But Jasc left out
the resolution out of the equation. Corel fixed this bug but you end up
with a TextEx that is not able to work correctly since it use an external
parameter.
What I see is that:
PSP8 is limited to the pixel world.
PSP9 is the one that is bugged.
PSPX is limited to the resolution world... but bug free.
So if I had to throw a rock at someone... it would be PSP9. :)
--
Fabrice Roux aka [RS]Faramir_agst
PaintShop Pro and Tribes scripts
http://www.fabriceroux.com
| |
|
| Fred Hiltz wrote:
> Spandex Rutabaga wrote:
[color=darkred]
> [snip]
[color=darkred]
> I did look into it, maybe not as thoroughly as others. It seems to
> boil down to the use of the display resolution setting by PSP 8
> and 9 in an apparent attempt to control the size in inches of
> text on our monitors. We now know that to have been misguided.
> The developers of PSP 10 got it right, IMO, abandoning the attempt
> to make the screen and the printer work alike. Now pixels are
> monitor pixels and--if you set the print resolution before setting
> the text size--points are printed points. Too bad they did not
> follow this through in the scripting API.
> Dealing with this change in scripts is a chore; the price of
> correcting the design error in PSP 8 and 9. Not everyone will
> agree that 10 gets it right, I know. Perhaps Howard and Suz will
> set me straight on this.
> Hey Suz, the knowledge that you and Howard have scraped up would
> be a article in Tips & Tricks. It would be a shame to let it get
> buried in old newsgroup posts. I'd be willing to contribute, but
> you two know the scripting part best.
I think the posts by Jos Croeze about the thirds and TextEx as
opposed to the former Text are enlightening as well. Either one does
the text code in 8 and pastes it into X scripts, or one does a third
division in the code. So, if you're going to work on this, don't
forget there's those contributing quietly and credit their tips as
well if you're going to write them down.
Joske
--
http://members.home.nl/j.a.c.backer/
| |
| SuzShook 2006-06-08, 7:39 pm |
|
Joske wrote:
> Fred Hiltz wrote:
>
>
>
>
>
>
>
> I think the posts by Jos Croeze about the thirds and TextEx as
> opposed to the former Text are enlightening as well. Either one does
> the text code in 8 and pastes it into X scripts, or one does a third
> division in the code. So, if you're going to work on this, don't
> forget there's those contributing quietly and credit their tips as
> well if you're going to write them down.
>
> Joske
I need to make something abundantly clear here about my Tips & Tricks. I
accumulate the information for the Tips from many sources, and test and
retest it before I place any of it in my document. Mostly, I choose "stuff"
that I've adopted and that makes a difference for me in my work, and that I
believe will help other users in theirs. However, citing all the
contributors to this effort - all those users who have shared an AHA
moment - would be an exercise in futility, and would unnecessarily clutter
the tips with names and dates and other source trivia. Shucks, sometimes I
find the same "light bulb" idea in several places, and hear it expounded
upon by several people, before I make it my own. It's at that point where I
might add it to the Tips, in perhaps my own words, and with maybe my own
twists and experience. Therefore, I choose NOT to credit individual
sources, and have stuck by that decision through 4 releases of PSP. The
only exception to this decision is in the PSP X Tips where I inserted an
entire article contributed by Fred. That was done because of its length and
depth of detail, and Fred's suggestion (and offer) that it be added to my
Tips. However, that was an exception. So, if something that's been
discussed in the newsgroups is added to the Tips, it's because I like the
idea, I've seen this idea before, I've used this idea in my work, or all of
these, and want to place it in a medium where it will be available to many
people, even those who do not do newsgroups. It might be an idea that's
been in my head for a long time, and that I've never formulated for the
Tips. It might be one of the hundreds of scraps of paper in my Tips folder
that haven't reached the HTML stage just yet. But it's just an idea,
probably flashing in many minds from time to time. So, when I finally
decide to add that idea, I will most likely add it without citing any
sources. Let's be frank here and admit that what we've discovered has been
discovered by many others before us, and will be discovered by many others
after us. So these are not personal discoveries, but just individuals
reporting what their latest Eureka moments are/have been.
I don't want to get into another discussion about citing contributors - we
beat that to death when I published the Errata document - or a turf war
about who said what when. Suffice it to say that I never add Tips without
making them mine first. As for the current topic, I (independently?)
discovered the "trick" to getting the font size right back in October of
last year, after beating that horse about to death with test after test
after test. I even wrote a script to help users get the same size text in
PSP X as in prior versions of PSP, and added my notes about text in PSP X to
the Tips at that time. Now, I may just update that article with some of the
latest ideas floating around, and my own continuing understanding about the
issues.
I hope this doesn't ruffle any feathers - it's the way the Tips document has
always been - and how I plan to continue to maintain it. Suz
| |
| SuzShook 2006-06-08, 7:39 pm |
|
Spandex Rutabaga wrote:
> SuzShook wrote:
>
> Would this work? You interrogate the image via the equivalent of
> the Image Info command to get its resolution and save that. Using
> Resize with resampling off set the resolution to 72 ppi. Now pixels
> are points and the units don't matter. [*] Place the text and, once
> that's done, using Resize set the resolution back to what it was.
I thought about this last night, Spandex. The whole text thing is dependent
upon image resolution. And your solution is exactly what I thought about
trying. I'm not sure what it means when I admit think like a turnip - oops,
I mean, like a rutabaga! - but it's something to be mulled over. I've been
working on this very thing this morning and have a new version of the script
almost ready. I've found that text still gets mungled when reset to the
original resolution in the script, but works alright if the text layer is
first merged down with the preset shape layer, so I'll do it like that.
Will post updated version later this morning. Suz
> [*] There may be some hinky stuff here. For example the character
> height may be measured differently in PSP X compared to previous
> versions. (I'm thinking of the locations of the lines defining the
> top and the bottom of a character.) There might also be some use
> made by PSP of the Windows display resolution setting, normally
> taken to be 96. These things have been discussed at various times
> but I can't remember the gist. Fred might have been the one who
> looked into this most thoroughly (but I don't want to drop him in
> it by mistake. Also Howard posted some kind of workaround to some
> of these problems in one of his scripts.
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| Joske wrote:
> I think the posts by Jos Croeze about the thirds and TextEx as
> opposed to the former Text are enlightening as well.
I forgot about that and, while I recall the posts now you've reminded
me, I still can't recall any details. You'll see that I forgot most
of what was said by anyone about text :) I can't imagine any ordinary
user being able to script text successfully. I certainly couldn't.
I'm hoping that through everyone's effort some simple recipe can
be put together that works consistently.
| |
| Howard Dickson 2006-06-08, 7:39 pm |
| Hi folks,
Yep, the text 'PointSize' is now proportional to the image's resolution
that you are applying the text to. That is to say, if you write a
script, using an image with 300ppi, and you think the text pointsize
looks best at say 10, then that script will display the text at a quite
different pointsize when used on an image with a resolution of 200ppi.
The workaround I use is this. On an image whose resolution is 72ppi, the
text Pixel and Point values are the same... so all we have to do is
determine the current image's resolution and calculate it's ratio to 72ppi.
To do this you should add this code to the start of your script...
imgpix = Info['PixelsPerUnit']
factor = 72/imgpix
Now all you need to do is multiply your text pointsize by the 'factor'
variable to get the correct pointsize proportional to the current
image's resolution.
You could simply do it this way (in the Text section of your script)...
'PointSize': 10 * factor,
Or, what I prefer to do, is to calculate my text size based on the Width
(or Height) of the image... then use the 'factor'.
So, if I wanted my text size to be a 50th of the Width of the image, I
would use this code...
textsize= App.ActiveDocument.Width/50
And with PSPX, assuming you've used the other bit of code previously to
determine the resolution, this would be...
textsize= (App.ActiveDocument.Width/50) *factor
So then all you would need to put in the Text section of your script
would be...
'PointSize': textsize,
I hope that all makes sense. :)
This 'improvement' may be a more accurate way of doing things, but it's
a pain in the @ss to script!
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| SuzShook 2006-06-08, 7:39 pm |
| I hadn't looked at your workaround closely, Howard, until this morning. It
works well but does not resolve the problem when older scripts run in PSP X,
unfortunately. Those scripts still need to be edited to work, or they will
produce differing results on images with different resolutions. Such a
pain! Suz
Howard Dickson wrote:
> Hi folks,
>
> Yep, the text 'PointSize' is now proportional to the image's
> resolution that you are applying the text to. That is to say, if you
> write a script, using an image with 300ppi, and you think the text
> pointsize
> looks best at say 10, then that script will display the text at a
> quite different pointsize when used on an image with a resolution of
> 200ppi.
> The workaround I use is this. On an image whose resolution is 72ppi,
> the text Pixel and Point values are the same... so all we have to do
> is determine the current image's resolution and calculate it's ratio
> to 72ppi.
> To do this you should add this code to the start of your script...
>
> imgpix = Info['PixelsPerUnit']
> factor = 72/imgpix
>
> Now all you need to do is multiply your text pointsize by the 'factor'
> variable to get the correct pointsize proportional to the current
> image's resolution.
>
> You could simply do it this way (in the Text section of your
> script)...
> 'PointSize': 10 * factor,
>
>
>
> Or, what I prefer to do, is to calculate my text size based on the
> Width (or Height) of the image... then use the 'factor'.
>
> So, if I wanted my text size to be a 50th of the Width of the image, I
> would use this code...
>
> textsize= App.ActiveDocument.Width/50
>
> And with PSPX, assuming you've used the other bit of code previously
> to determine the resolution, this would be...
>
> textsize= (App.ActiveDocument.Width/50) *factor
>
> So then all you would need to put in the Text section of your script
> would be...
>
> 'PointSize': textsize,
>
>
> I hope that all makes sense. :)
>
> This 'improvement' may be a more accurate way of doing things, but
> it's a pain in the @ss to script!
>
> Rgds,
> Howard
| |
| Howard Dickson 2006-06-08, 7:39 pm |
| SuzShook wrote:
> I hadn't looked at your workaround closely, Howard, until this morning. It
> works well but does not resolve the problem when older scripts run in PSP X,
> unfortunately. Those scripts still need to be edited to work, or they will
> produce differing results on images with different resolutions. Such a
> pain! Suz
>
Suz,
Yeah, older scripts will require editing, but it's only to add a couple
of lines of code at the top, and '* factor' to the existing pointsize.
You're right though... such a pain!
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| Howard Dickson wrote:
> To do this you should add this code to the start of your script...
>
> imgpix = Info['PixelsPerUnit']
> factor = 72/imgpix
>
> Now all you need to do is multiply your text pointsize by the 'factor'
> variable to get the correct pointsize proportional to the current
> image's resolution.
That's much more direct than my suggestion. However, don't you need
to check somewhere what the units are? In Europe and the Antipodes
they use metric measurements. PSP might get that from the Windows
regional settings. I assume you would need to take that into account
somehow but I might simply be displaying just how much I don't know
about any of this :)
| |
| Howard Dickson 2006-06-08, 7:39 pm |
| Spandex Rutabaga wrote:
> Howard Dickson wrote:
>
>
> That's much more direct than my suggestion. However, don't you need
> to check somewhere what the units are? In Europe and the Antipodes
> they use metric measurements. PSP might get that from the Windows
> regional settings. I assume you would need to take that into account
> somehow but I might simply be displaying just how much I don't know
> about any of this :)
Span,
As far as I can see, it doesn't really make a difference. A proportional
adjustment is made regardless... well it does here anyway! :)
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| Howard Dickson wrote:
> As far as I can see, it doesn't really make a difference. A proportional
> adjustment is made regardless... well it does here anyway! :)
Even vegetables can be anal at times :)
| |
| Howard Dickson 2006-06-08, 7:39 pm |
| Spandex Rutabaga wrote:
> Howard Dickson wrote:
>
>
> Even vegetables can be anal at times :)
Vegetables... Anal... I'm not sure I like the way this thread is going! ;)
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| Spandex Rutabaga 2006-06-08, 7:39 pm |
| Howard Dickson wrote:
> I'm not sure I like the way this thread is going! ;)
I won't butt in again.
| |
|
| Hi, thanks for this,
This is very important, since I'm using v10, the font size, pixel size
always giving me problems.
but I've tried to follow your instructions, I couldn't do it, I'm no pro
when it comes to scripting, is it possible to do the whole script, for me to
understand it?
I've tried to place the code etc... but didn't get me anywhere, I'm sure I'm
doing somthing wrong.
Thanks
Dave
"Howard Dickson" <howard@REMOVEsheilsoft.com> wrote in message
news:44883b76$1_3@cnews...
> Hi folks,
>
> Yep, the text 'PointSize' is now proportional to the image's resolution
> that you are applying the text to. That is to say, if you write a script,
> using an image with 300ppi, and you think the text pointsize looks best at
> say 10, then that script will display the text at a quite different
> pointsize when used on an image with a resolution of 200ppi.
>
> The workaround I use is this. On an image whose resolution is 72ppi, the
> text Pixel and Point values are the same... so all we have to do is
> determine the current image's resolution and calculate it's ratio to
> 72ppi.
>
> To do this you should add this code to the start of your script...
>
> imgpix = Info['PixelsPerUnit']
> factor = 72/imgpix
>
> Now all you need to do is multiply your text pointsize by the 'factor'
> variable to get the correct pointsize proportional to the current image's
> resolution.
>
> You could simply do it this way (in the Text section of your script)...
>
> 'PointSize': 10 * factor,
>
>
>
> Or, what I prefer to do, is to calculate my text size based on the Width
> (or Height) of the image... then use the 'factor'.
>
> So, if I wanted my text size to be a 50th of the Width of the image, I
> would use this code...
>
> textsize= App.ActiveDocument.Width/50
>
> And with PSPX, assuming you've used the other bit of code previously to
> determine the resolution, this would be...
>
> textsize= (App.ActiveDocument.Width/50) *factor
>
> So then all you would need to put in the Text section of your script would
> be...
>
> 'PointSize': textsize,
>
>
> I hope that all makes sense. :)
>
> This 'improvement' may be a more accurate way of doing things, but it's a
> pain in the @ss to script!
>
> Rgds,
> Howard
>
> --
>
> ---oooOOOooo---
>
> Sheilsoft
> ComputerSystems
>
> www.sheilsoft.com
>
> ---oooOOOooo---
| |
| Spandex Rutabaga 2006-06-11, 4:11 am |
| Dave wrote:
> but I've tried to follow your instructions, I couldn't do it, I'm no pro
> when it comes to scripting, is it possible to do the whole script, for me to
> understand it?
Of course it's possible. Howard has done it. I don't understand why
you don't just look at Howard's script. His site URL is his sig.
Try this: http://www.sheilsoft.com/psp/copyright.htm but make sure
you click on the right button.
> I've tried to place the code etc... but didn't get me anywhere, I'm sure I'm
> doing somthing wrong.
I'm sure you're doing something wrong too. However, since you are
keeping what you did a secret, it's awfully difficult for anyone to
point out any error.
| |
|
| Thank you
I went to the website, now I know what you mean.
thanks again
Dave
"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:4488CF9E.16C791E1@agabatur.xednaps...
> Dave wrote:
>
>
> Of course it's possible. Howard has done it. I don't understand why
> you don't just look at Howard's script. His site URL is his sig.
> Try this: http://www.sheilsoft.com/psp/copyright.htm but make sure
> you click on the right button.
>
>
> I'm sure you're doing something wrong too. However, since you are
> keeping what you did a secret, it's awfully difficult for anyone to
> point out any error.
| |
| SuzShook 2006-06-11, 4:11 am |
| underprocessable | |
| Howard Dickson 2006-06-11, 4:11 am |
| SuzShook wrote:
> You're right, Spandex. Howard's formula doesn't quite work on an image
> created in Pixels/cm. There's a conversion factor of 2.54 needed -
> otherwise the text is way too small. In the AddingCaptions script, I've
> used Howard's formula, with this slight change:
>
> Resolution = ImageInfo['PixelsPerUnit']
> Units = ImageInfo['Unit']
>
> if Units == 'Inches':
> ConversionFactor = 72 / Resolution
> else:
> ConversionFactor = 72 / Resolution * 2.54
>
> It's even more of a pain than we thought, Howard!!!! You might want to take
> a look at this.
>
> I've attached a new version of the AddingCaption script which contains the
> new code. This version should give you text that's sized correctly, no
> matter which version it's run in. Thanks for the inspiration, Howard. And
> thanks for alerting us to the units issue, Spandex. Suz
>
Suz,
Looks good!
I'll update my scripts once I've checked it out fully.
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| SuzShook 2006-06-11, 4:11 am |
| Howard Dickson wrote:
> SuzShook wrote:
> Suz,
>
> Looks good!
> I'll update my scripts once I've checked it out fully.
>
> Rgds,
> Howard
Let me know if/(when?) you verify this, Howard - then I'll add it to the
Tips doc. Thanks. Suz
| |
| Howard Dickson 2006-06-11, 4:11 am |
| SuzShook wrote:
> Howard Dickson wrote:
>
> Let me know if/(when?) you verify this, Howard - then I'll add it to the
> Tips doc. Thanks. Suz
>
>
Suz,
I've checked it out on a couple of my scripts, and everything looks good.
For others, remember to add this line first, before using Suz's code...
ImageInfo = App.Do( Environment, 'ReturnImageInfo' )
Thanks Suz!
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
|
| Spandex Rutabaga wrote:
> Joske wrote:
[color=darkred]
> I forgot about that and, while I recall the posts now you've
> reminded me, I still can't recall any details. You'll see that I
> forgot most of what was said by anyone about text :) I can't
> imagine any ordinary user being able to script text successfully.
> I certainly couldn't. I'm hoping that through everyone's effort
> some simple recipe can be put together that works consistently.
I don't think it's bad for a mere rutabaga who almost knows all to
have one subject going into one root and out of another :-)
Besides.
Suz and Howard are now coming to the conclusions Jos posted when
Howard asked for input in May, and Fred has offered to help write
things down, so I think you can expect to see a formula up on Suz'
page soon.
Joske
--
http://members.home.nl/j.a.c.backer/
| |
| Howard Dickson 2006-06-11, 4:11 am |
| Joske wrote:
> Besides.
>
> Suz and Howard are now coming to the conclusions Jos posted when
> Howard asked for input in May, and Fred has offered to help write
> things down, so I think you can expect to see a formula up on Suz'
> page soon.
>
> Joske
Joske,
I really think it's about time you just calmed down.
Suz's site with Tips & tricks provides a very useful resource to 'all'
PSP users, and covers any copyright issues with a perfectly adequate
disclaimer.
If you personally have an issue with any of the content that you may
think was originally authored by yourself, then I'm sure if you ask to
have it removed, it will be.
I'm not sure what conclusion Jos came to, that we have now arrived at,
other than agreeing with my original premise that there was a text size
differential with PSPX when running scripts developed in earlier
versions. I have, with the help of a few individuals on this newsgroup,
developed a workaround for this problem, and Suz's additional
conditional Units code has brought it to a tidy conclusion. I will be
extremely happy to see this workaround shown on Suz's site to help as
many users as possible.
We all use this newsgroup community to share and help each other.
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| Vern Stump 2006-06-11, 4:11 am |
| SuzShook wrote:[color=darkred]
> You're right, Spandex. Howard's formula doesn't quite work on an
> image created in Pixels/cm. There's a conversion factor of 2.54
> needed - otherwise the text is way too small. In the AddingCaptions
> script, I've used Howard's formula, with this slight change:
>
> Resolution = ImageInfo['PixelsPerUnit']
> Units = ImageInfo['Unit']
>
> if Units == 'Inches':
> ConversionFactor = 72 / Resolution
> else:
> ConversionFactor = 72 / Resolution * 2.54
>
> It's even more of a pain than we thought, Howard!!!! You might want
> to take a look at this.
>
> I've attached a new version of the AddingCaption script which
> contains the new code. This version should give you text that's
> sized correctly, no matter which version it's run in. Thanks for the
> inspiration, Howard. And thanks for alerting us to the units issue,
> Spandex. Suz
>
> Spandex Rutabaga wrote:
Suz:
Your latest script runs AOK in v8,9,X, except the text decreases in size v8
to vX.
Are you saying the text size will be the same in all three versions or must
I do something else before executing the script?
Thanks, Vern
| |
| Spandex Rutabaga 2006-06-11, 4:11 am |
| SuzShook wrote:
>
> You're right, Spandex. Howard's formula doesn't quite work on an image
> created in Pixels/cm.
Heh! Heh! Not anal retentive after all :) Not surprising really given
the anatomy of a rutabaga :)
> There's a conversion factor of 2.54 needed -
> otherwise the text is way too small. In the AddingCaptions script, I've
> used Howard's formula, with this slight change:
>
> Resolution = ImageInfo['PixelsPerUnit']
> Units = ImageInfo['Unit']
>
> if Units == 'Inches':
> ConversionFactor = 72 / Resolution
> else:
> ConversionFactor = 72 / Resolution * 2.54
>
> It's even more of a pain than we thought, Howard!!!!
Come now, it's just an if block and some simple arithmetic. The real
problem is Corel not including sample code like that in the docs.
This is another for the Tips page, I think, since I'm bound to forget
the details in a few weeks.
| |
|
| Howard Dickson wrote:
> Joske wrote:
[color=darkred]
[color=darkred]
> I really think it's about time you just calmed down.
I'm not upset, unless one wants to include the sheer bafflement over
the responses to my short post to Fred. And I have every reason to
be baffled over those, wouldn't you agree? All this because Suz
herself wrote diatribe suggesting I had written something about her
site? None of you look very good in this, and definitely more upset
than I would have every reason to be. The sooner this is over the
better, even if it does leave the unjustly tainted characterization
of my person uncorrected.
> Suz's site with Tips & tricks provides a very useful resource to
> 'all' PSP users, and covers any copyright issues with a perfectly
> adequate disclaimer.
> If you personally have an issue with any of the content that you
> may think was originally authored by yourself, then I'm sure if
> you ask to have it removed, it will be.
For now I will not go into Suz' reasoning for taking any and all
ideas without a simple acknowledgment here and calling them
unoriginal. As Suz herself remarked, she has been down that road
with many others before (never me until now when she addressed me on
it) and they got nowhere aside from being discredited by others as I
seem to be now.
Just this:
You don't seem to understand that people don't have a choice, as
voiced very clearly by Suz herself. At most people can withhold
posting or putting up ideas, scripts, and whatnot.
> I'm not sure what conclusion Jos came to, that we have now
> arrived at, other than agreeing with my original premise that
> there was a text size differential with PSPX when running scripts
> developed in earlier versions. I have, with the help of a few
> individuals on this newsgroup, developed a workaround for this
> problem,
And you asked for input first and did not acknowledge, go into
conversation, have an exchange of ideas, when responses came. Jos
among others replied to your request, but your silence didn't give
anyone reason to elaborate. Later I asked you elsewhere if you had
seen it and again you did not respond - clearly you weren't
interested in elaborating on the issue with just anyone :-) Case in
point, and also the sole simple gist of my message to Fred.
Joske
--
http://members.home.nl/j.a.c.backer/
| |
| Howard Dickson 2006-06-11, 4:11 am |
|
>
> And you asked for input first and did not acknowledge, go into
> conversation, have an exchange of ideas, when responses came. Jos
> among others replied to your request, but your silence didn't give
> anyone reason to elaborate. Later I asked you elsewhere if you had
> seen it and again you did not respond - clearly you weren't
> interested in elaborating on the issue with just anyone :-) Case in
> point, and also the sole simple gist of my message to Fred.
>
> Joske
Joske,
This is getting quite petty, don't you think?
I rounded out my original post by returning to the forum with a
workaround for the problem. You may have not seen all the communication
regarding this as I responded to some users personally.
I apologise if I didn't reply to 'every' response.
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| SuzShook 2006-06-11, 4:11 am |
| underprocessable | |
|
| Howard Dickson wrote:
> This is getting quite petty, don't you think?
Yes, it is amazing how one diatribe from Suz in response to a short
note not written to her can bring out all this in all who joined in.
You snipped your initial remarks, but you got them in and they were
as uninvited and voluntary as all else that was posted.
As I said, I would have every reason to feel stunned at what is
suddenly coming my way - it's not as if I'm new or devoid of
contributions to the community, after all. Whatever happened to you
and I getting along just fine over scrapping issues which we neither
use ourselves, is what I wonder.
So I have written a note to Travis about this, tagging on to his
post in the X group. Next time he may want to include non-native
writers or whatever else that seems to have stirred such an
unwelcome, unexpected, and unpleasant atmosphere amongst you after
Suz' post. Let Corel sort this, I can't make heads or tails of this
nor should I.
Joske
--
http://members.home.nl/j.a.c.backer/
| |
| Vern Stump 2006-06-11, 4:11 am |
| underprocessable | |
| Vern Stump 2006-06-11, 4:11 am |
| Vern Stump wrote:
> SuzShook wrote:
>
> Suz:
> v8 & 9 are same size. vX is smaller. See attachment.
> Thnaks, Vern
Suz, I forgot to mention my monitor is set for 96.
Thanks, Vern
| |
| Howard Dickson 2006-06-11, 4:11 am |
| Joske wrote:
> Howard Dickson wrote:
>
>
> Yes, it is amazing how one diatribe from Suz in response to a short
> note not written to her can bring out all this in all who joined in.
> You snipped your initial remarks, but you got them in and they were
> as uninvited and voluntary as all else that was posted.
>
> As I said, I would have every reason to feel stunned at what is
> suddenly coming my way - it's not as if I'm new or devoid of
> contributions to the community, after all. Whatever happened to you
> and I getting along just fine over scrapping issues which we neither
> use ourselves, is what I wonder.
>
> So I have written a note to Travis about this, tagging on to his
> post in the X group. Next time he may want to include non-native
> writers or whatever else that seems to have stirred such an
> unwelcome, unexpected, and unpleasant atmosphere amongst you after
> Suz' post. Let Corel sort this, I can't make heads or tails of this
> nor should I.
>
> Joske
Joske,
I don't care what your original gripe was with Suz. All I have ever done
here is to ask you to calm down, as your responses were getting quite
agressive. I personally don't see what your problem is with me however.
I've answered all your questions as openly as possible, and even given
an apology.
I refuse to be drawn any further with this nonsense.
Rgds,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| SuzShook 2006-06-11, 4:11 am |
|
Vern Stump wrote:
> SuzShook wrote:
>
> Suz:
> v8 & 9 are same size. vX is smaller. See attachment.
> Thnaks, Vern
Vern - check your Monitor Resolution - is it 96? Suz
| |
| SuzShook 2006-06-11, 4:11 am |
|
Vern Stump wrote:
> Vern Stump wrote:
>
> Suz, I forgot to mention my monitor is set for 96.
>
> Thanks, Vern
Well, that answers that question. Mine are all the same. Anyone else? Suz
| |
| Vern Stump 2006-06-11, 4:11 am |
| SuzShook wrote:
> Vern Stump wrote:
>
> Vern - check your Monitor Resolution - is it 96? Suz
Suz,
19" monitor
Under/Settings/Advanced/DPI setting: "Normal size (96DPI)"
Under Appearance Tab/Font size: "Normal"
Thanks, Vern
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:4489c36a_3
@cnews:
>
>
> Vern Stump wrote:
decreases[color=darkred]
script?[color=darkred]
in PSP 8[color=darkred]
resolution of[color=darkred]
unless you[color=darkred]
Let me[color=darkred]
>
> Well, that answers that question. Mine are all the same.
Anyone
> else? Suz
>
Not for this (as I have 8 and 9 but not X), but I did find out -
and fixed - why these caption scripts haven't been working in my
v.9 although they do run in v.8.
You have GetVersionInfo code for Version 8 and Version 10 but
none for Version 9. I took your last script and changed the 8 to
a 9 in the "if Version['MajorVersion'] == 8:" line, and it now
runs fine in my v.9. The unchanged script runs fine in v.8 and
both v.8 and v.9 get the caption with the same size text, and it
is large enough to be read reasonably, not tiny like Vern's v.10
text.
Regards,
JoeB
| |
| Vern Stump 2006-06-11, 4:11 am |
| SuzShook wrote:
> Vern Stump wrote:
>
> Vern - check your Monitor Resolution - is it 96? Suz
Suz:
I found the problem, but I do NOT know what the cause. All I did was reset
the Text Tool reset under Presets. I tried several ways to see if I could
cause the problem again. If this happens to my PSPX again, I will let the
group know so we can try to resolve the problem.
Thanks, Vern
| |
| SuzShook 2006-06-11, 4:11 am |
| Vern Stump wrote:
> SuzShook wrote:
>
> Suz:
> I found the problem, but I do NOT know what the cause. All I did was
> reset the Text Tool reset under Presets. I tried several ways to see
> if I could cause the problem again. If this happens to my PSPX
> again, I will let the group know so we can try to resolve the problem.
> Thanks, Vern
And all your text is the same size now, Vern - all 3 versions? Suz
| |
| SuzShook 2006-06-11, 4:11 am |
| underprocessable | |
| Vern Stump 2006-06-11, 4:11 am |
| SuzShook wrote:
> Vern Stump wrote:
>
> And all your text is the same size now, Vern - all 3 versions? Suz
Yes, Suz, all text is the same size. I forgot to say all 3 versions are the
same size. Thank you very much for working with me. This is the only way
to truly solve a problem. It is not important who fixes a problem, but the
enjoyment and satisfaction of working together.
Thanks again,
Vern
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:4489f127_2
@cnews:
> JoeB wrote:
-[color=darkred]
my[color=darkred]
to[color=darkred]
and[color=darkred]
it[color=darkred]
v.10[color=darkred]
>
> If you look at that GetVersionInfo code - rather, the "if"
after the
> GetVersionInfo command - I ask if the version is 8 so I can run
the
> Text command - otherwise, I run the TextEx command, which is
the PSP
> 9/X version of the Text command. The code is okay the way I
sent it,
> Joe, as your system should follow the "else" part and run the
TextEx
> command, which works in PSP 9. Try the attached and let me
know if it
> works. Suz
>
Hi Suz,
First, for me this isn't an issue, just a puzzle, as I don't
think I've actually needed/used any of the scripts that add text
to images. I do, however, tend to try them just to see what they
do. So please don't waste your time with this, as I just brought
up the issue out of curiousity.
Also, I'm not a scripter (as you know) and just get intriqued by
these little things - and learn stuff as I fool around with them.
In any event, I did some tests. This latest test script does not
work for me, and the scripts that don't work report the test ex
line as the problem, saying they can't load the document/vector
layer.
I tried a few text scripts I do have, and below I have pasted a
few (seemingly) equivalent lines from each one with comments as
to which work, which don't and the circumstances, just in case
you're curious. The first one works fine, even though it has the
text ex line. The next doesn't. The third, one of yours, works
fine although it has a v.8 and an else text ex line, and I don't
have to change the v.8 to v.9 in the version line to make it
work. The fourth is your latest script, and it won't work UNLESS
I change the v.8 to v.9 in that line.
But as I say, it's not a big deal as I don't use text scripts -
it just tweaked my curiousity so likely isn't worth your time.
In any event, here's what I found:
Howard's Copyright script - WORKS
# Text
App.Do( Environment, 'TextEx', {
'Visibility': True,
'CreateAs': App.Constants.CreateAs.Floating,
Howard's EXIF Exposure script - DOESN'T WORK
# Text
App.Do( Environment, 'TextEx', {
'Visibility': True,
'CreateAs': App.Constants.CreateAs.Floating,
Suz Insert Name script - WORKS (and I DON'T have to change the
version to 9 from 8)
if Version['MajorVersion'] == 8:
# Text
App.Do( Environment, 'Text', {
'CreateAs': App.Constants.CreateAs.Vector,
else:
# Text
App.Do( Environment, 'TextEx', {
'Visibility': True,
'CreateAs': App.Constants.CreateAs.Vector,
Suz Add Caption-02 script - DOESN'T WORK as is, but does if I
change version to 9 from 8).
if Version['MajorVersion'] == 8:
# Text
App.Do( Environment, 'Text', {
'CreateAs': App.Constants.CreateAs.Vector,
else:
if Version['MajorVersion'] == 10:
PointSize = 13 * ConversionFactor
else:
PointSize = 10
# Text
App.Do( Environment, 'TextEx', {
'Visibility': True,
'CreateAs': App.Constants.CreateAs.Vector,
That's it, Suz. Whether it's floating or vector doesn't seem to
matter. If all scripts with text ex didn't work that would be
one thing. I'm not sure why Howard's first one works but not the
second, or why your first one works without changing v.8 to v.9
but the second won't work unless that change is made (unless it's
because your first one doesn't specify the version number for the
text ex code like your second one does). But Howard's second one
doesn't specify a version and doesn't work while his first one
works, also without specifying a version.
Oh well...no big deal - just a curiousity :-)
Regards,
JoeB
| |
| Howard Dickson 2006-06-11, 4:11 am |
| JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:4489f127_2
> @cnews:
>
> -
> my
> to
> and
> it
> v.10
> after the
> the
> the PSP
> sent it,
> TextEx
> know if it
>
> Hi Suz,
>
> First, for me this isn't an issue, just a puzzle, as I don't
> think I've actually needed/used any of the scripts that add text
> to images. I do, however, tend to try them just to see what they
> do. So please don't waste your time with this, as I just brought
> up the issue out of curiousity.
>
> Also, I'm not a scripter (as you know) and just get intriqued by
> these little things - and learn stuff as I fool around with them.
>
> In any event, I did some tests. This latest test script does not
> work for me, and the scripts that don't work report the test ex
> line as the problem, saying they can't load the document/vector
> layer.
>
> I tried a few text scripts I do have, and below I have pasted a
> few (seemingly) equivalent lines from each one with comments as
> to which work, which don't and the circumstances, just in case
> you're curious. The first one works fine, even though it has the
> text ex line. The next doesn't. The third, one of yours, works
> fine although it has a v.8 and an else text ex line, and I don't
> have to change the v.8 to v.9 in the version line to make it
> work. The fourth is your latest script, and it won't work UNLESS
> I change the v.8 to v.9 in that line.
>
> But as I say, it's not a big deal as I don't use text scripts -
> it just tweaked my curiousity so likely isn't worth your time.
> In any event, here's what I found:
>
> Howard's Copyright script - WORKS
>
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Floating,
>
>
>
> Howard's EXIF Exposure script - DOESN'T WORK
>
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Floating,
>
>
>
> Suz Insert Name script - WORKS (and I DON'T have to change the
> version to 9 from 8)
>
> if Version['MajorVersion'] == 8:
> # Text
> App.Do( Environment, 'Text', {
> 'CreateAs': App.Constants.CreateAs.Vector,
>
> else:
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Vector,
>
>
>
> Suz Add Caption-02 script - DOESN'T WORK as is, but does if I
> change version to 9 from 8).
>
> if Version['MajorVersion'] == 8:
> # Text
> App.Do( Environment, 'Text', {
> 'CreateAs': App.Constants.CreateAs.Vector,
>
> else:
> if Version['MajorVersion'] == 10:
> PointSize = 13 * ConversionFactor
> else:
> PointSize = 10
>
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Vector,
>
>
> That's it, Suz. Whether it's floating or vector doesn't seem to
> matter. If all scripts with text ex didn't work that would be
> one thing. I'm not sure why Howard's first one works but not the
> second, or why your first one works without changing v.8 to v.9
> but the second won't work unless that change is made (unless it's
> because your first one doesn't specify the version number for the
> text ex code like your second one does). But Howard's second one
> doesn't specify a version and doesn't work while his first one
> works, also without specifying a version.
>
> Oh well...no big deal - just a curiousity :-)
>
> Regards,
>
> JoeB
Joe,
Just out of curiosity, when you say my EXIF script 'doesn't work', what
do you mean by this? Do you mean, when you add Suz's code to it?
I write 3 versions of my scripts for PSP8, 9 & X, so don't require to
extract the version info, I just prefer doing it that way, so I'd be
interested if there is something else causing a problem.
Regards,
Howard
--
---oooOOOooo---
Sheilsoft
ComputerSystems
www.sheilsoft.com
---oooOOOooo---
| |
| SuzShook 2006-06-11, 4:11 am |
| Thanks for all the examples, Joe - I don't see any pattern. I asked you
once before, and I don't see any response - are you running 9.01.1? Suz
JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:4489f127_2
> @cnews:
>
>
> Hi Suz,
>
> First, for me this isn't an issue, just a puzzle, as I don't
> think I've actually needed/used any of the scripts that add text
> to images. I do, however, tend to try them just to see what they
> do. So please don't waste your time with this, as I just brought
> up the issue out of curiousity.
>
> Also, I'm not a scripter (as you know) and just get intriqued by
> these little things - and learn stuff as I fool around with them.
>
> In any event, I did some tests. This latest test script does not
> work for me, and the scripts that don't work report the test ex
> line as the problem, saying they can't load the document/vector
> layer.
>
> I tried a few text scripts I do have, and below I have pasted a
> few (seemingly) equivalent lines from each one with comments as
> to which work, which don't and the circumstances, just in case
> you're curious. The first one works fine, even though it has the
> text ex line. The next doesn't. The third, one of yours, works
> fine although it has a v.8 and an else text ex line, and I don't
> have to change the v.8 to v.9 in the version line to make it
> work. The fourth is your latest script, and it won't work UNLESS
> I change the v.8 to v.9 in that line.
>
> But as I say, it's not a big deal as I don't use text scripts -
> it just tweaked my curiousity so likely isn't worth your time.
> In any event, here's what I found:
>
> Howard's Copyright script - WORKS
>
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Floating,
>
>
>
> Howard's EXIF Exposure script - DOESN'T WORK
>
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Floating,
>
>
>
> Suz Insert Name script - WORKS (and I DON'T have to change the
> version to 9 from 8)
>
> if Version['MajorVersion'] == 8:
> # Text
> App.Do( Environment, 'Text', {
> 'CreateAs': App.Constants.CreateAs.Vector,
>
> else:
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Vector,
>
>
>
> Suz Add Caption-02 script - DOESN'T WORK as is, but does if I
> change version to 9 from 8).
>
> if Version['MajorVersion'] == 8:
> # Text
> App.Do( Environment, 'Text', {
> 'CreateAs': App.Constants.CreateAs.Vector,
>
> else:
> if Version['MajorVersion'] == 10:
> PointSize = 13 * ConversionFactor
> else:
> PointSize = 10
>
> # Text
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Vector,
>
>
> That's it, Suz. Whether it's floating or vector doesn't seem to
> matter. If all scripts with text ex didn't work that would be
> one thing. I'm not sure why Howard's first one works but not the
> second, or why your first one works without changing v.8 to v.9
> but the second won't work unless that change is made (unless it's
> because your first one doesn't specify the version number for the
> text ex code like your second one does). But Howard's second one
> doesn't specify a version and doesn't work while his first one
> works, also without specifying a version.
>
> Oh well...no big deal - just a curiousity :-)
>
> Regards,
>
> JoeB
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:448a0c3d$1_1
@cnews:
> Thanks for all the examples, Joe - I don't see any pattern. I
asked you
> once before, and I don't see any response - are you running
9.01.1? Suz
>
Hi Suz,
Sorry, didn't get to responding to that post as I'd not followed
up until I thought I'd try these new scripts and had the same
result.
No (as I told someone many moons ago when another script glitch
showed up - which got fixed somehow) I've stuck with v.9. The
first patch had a glitch re: the rollup of the Layers palette
reverting to open state, and the second patch - which fixed it
for some - didn't fix it for others by the posts I read.
As everything else in 9 has worked for me since day one, and I'm
kind of (OK, very much of!) an anal "if it's working, don't muck
with it" person, I've not wanted to. I credit that approach with
the fact that, since I started with PSP in the late 90's, I've
never once had to do an uninstall/reinstall of any version of the
program because of a glitch. (I don't do too many Windows
updates either, relying on my AV, Zone Alarm and physical router
- and that continues to work also!).
I guess I should say I'm not so much interested in making it work
(as I haven't found a text script I need but do try them to see
what they do) as wondering why some scripts on v.9 work with text
ex code, and some stop at the text ex line (and now, for that
matter, why on one of your scripts it runs when the get Version
is set for 8 and the other will only work if the 8 is changed to
9). That's why I posted the various examples. (If it means
anything, a test text script I just recorded inserts text ex).
Not earth shattering stuff, just a puzzle for me when I can take
the time to do stuff that keeps the old mind active, and often is
a good learning experience for me as I fool around with stuff of
which I know very little! :-)
As I've said, it's not worth your time because no one else has
the problem. I just found it intriguing that text ex itself
doesn't seem to be the issue, and posted the examples in case you
had a quick insight or just in case they might mean something to
you for future use.
Sorry if I wasted your time because you thought I really might
need the script. The previous one you helped me with that showed
how to use Joe's Pause Script, on the other hand, very useful to
me!
Regar
| |
| SuzShook 2006-06-11, 4:11 am |
| I'm still curious, Joe - do you have all the PSP 9 patches installed,
through 9.01.1? Suz
JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:448a0c3d$1_1
> @cnews:
>
>
> Hi Suz,
>
> Sorry, didn't get to responding to that post as I'd not followed
> up until I thought I'd try these new scripts and had the same
> result.
>
> No (as I told someone many moons ago when another script glitch
> showed up - which got fixed somehow) I've stuck with v.9. The
> first patch had a glitch re: the rollup of the Layers palette
> reverting to open state, and the second patch - which fixed it
> for some - didn't fix it for others by the posts I read.
>
> As everything else in 9 has worked for me since day one, and I'm
> kind of (OK, very much of!) an anal "if it's working, don't muck
> with it" person, I've not wanted to. I credit that approach with
> the fact that, since I started with PSP in the late 90's, I've
> never once had to do an uninstall/reinstall of any version of the
> program because of a glitch. (I don't do too many Windows
> updates either, relying on my AV, Zone Alarm and physical router
> - and that continues to work also!).
>
> I guess I should say I'm not so much interested in making it work
> (as I haven't found a text script I need but do try them to see
> what they do) as wondering why some scripts on v.9 work with text
> ex code, and some stop at the text ex line (and now, for that
> matter, why on one of your scripts it runs when the get Version
> is set for 8 and the other will only work if the 8 is changed to
> 9). That's why I posted the various examples. (If it means
> anything, a test text script I just recorded inserts text ex).
>
> Not earth shattering stuff, just a puzzle for me when I can take
> the time to do stuff that keeps the old mind active, and often is
> a good learning experience for me as I fool around with stuff of
> which I know very little! :-)
>
> As I've said, it's not worth your time because no one else has
> the problem. I just found it intriguing that text ex itself
> doesn't seem to be the issue, and posted the examples in case you
> had a quick insight or just in case they might mean something to
> you for future use.
>
> Sorry if I wasted your time because you thought I really might
> need the script. The previous one you helped me with that showed
> how to use Joe's Pause Script, on the other hand, very useful to
> me!
>
> Regar
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:448a28de$1_2
@cnews:
> I'm still curious, Joe - do you have all the PSP 9 patches
installed,
> through 9.01.1? Suz
You must have missed it Suz. See below (I've snipped stuff that
didn't count).
[color=darkred]
I asked[color=darkred]
running[color=darkred]
glitch[color=darkred]
I'm[color=darkred]
muck[color=darkred]
I guess I should have been a bit more accurate and said "I've
stuck with v.9.0." Sorry 'bout that.
By the way, I also read your post explaining what you've found
about coding text and the text ex code. Much of it was beyound
me, of course, as I only record and what little editing I do is
because of what I've learned from these other scripting posts -
which is why I follow them and ask questions. Good work putting
it all together!
Regards,
JoeB
| |
| SuzShook 2006-06-11, 4:11 am |
|
JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:448a28de$1_2
> @cnews:
>
>
> You must have missed it Suz. See below (I've snipped stuff that
> didn't count).
>
>
>
> I guess I should have been a bit more accurate and said "I've
> stuck with v.9.0." Sorry 'bout that.
>
> By the way, I also read your post explaining what you've found
> about coding text and the text ex code. Much of it was beyound
> me, of course, as I only record and what little editing I do is
> because of what I've learned from these other scripting posts -
> which is why I follow them and ask questions. Good work putting
> it all together!
>
> Regards,
>
> JoeB
Do you have a reason for not upgrading to 9.011, Joe? Your problem with the
TextEx command may very well be resolved with the patches. Just a thought.
Suz
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:448aaa42$1_2
@cnews:
>
> JoeB wrote:
that[color=darkred]
1[color=darkred]
I[color=darkred]
you[color=darkred]
glitch[color=darkred]
The[color=darkred]
palette[color=darkred]
it[color=darkred]
I'm[color=darkred]
muck[color=darkred]
beyound[color=darkred]
is[color=darkred]
-[color=darkred]
putting[color=darkred]
>
> Do you have a reason for not upgrading to 9.011, Joe? Your
problem
> with the TextEx command may very well be resolved with the
patches.
> Just a thought. Suz
>
Just the reasons I've already gave in my last couple of posts,
Suz. They might seem arcane to some, but that's them!
Not that it matters because, as I've already said, I have never
found a use for the text writing scripts I've downloaded but do
try them out of curiousity to see what they do. And even your
script works when I change the version number in the Get Version
line.
Sorry if I hadn't made clear that this particular thing was one
mor of curiousity to me (and a learning experience re: scripting)
than something I expected to use. I've seen - in another thread
- that you people with more knowledge are already waaaaayyy
beyond what I likely will be learning about scripting!! :-))
I'll just stick to recording and, when lucky, making a slight
edit that might suit my needs. :-)
Regards,
| |
| SuzShook 2006-06-27, 9:08 pm |
|
JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:448aaa42$1_2
> @cnews:
>
>
> Just the reasons I've already gave in my last couple of posts,
> Suz. They might seem arcane to some, but that's them!
>
> Not that it matters because, as I've already said, I have never
> found a use for the text writing scripts I've downloaded but do
> try them out of curiousity to see what they do. And even your
> script works when I change the version number in the Get Version
> line.
>
> Sorry if I hadn't made clear that this particular thing was one
> mor of curiousity to me (and a learning experience re: scripting)
> than something I expected to use. I've seen - in another thread
> - that you people with more knowledge are already waaaaayyy
> beyond what I likely will be learning about scripting!! :-))
> I'll just stick to recording and, when lucky, making a slight
> edit that might suit my needs. :-)
>
> Regards,
For what it's worth, Joe - your problem is most likely fixed in one of the
patches you have not applied. But then, you probably already know that.
Suz
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|