This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > January 2007 > Re: PING Suz and Willy - final scripts
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 |
Re: PING Suz and Willy - final scripts
|
|
| SuzShook 2007-01-27, 11:39 pm |
| underprocessable | |
| Willy 2007-01-27, 11:39 pm |
| Very Nicely done Suz.
W
| |
| SuzShook 2007-01-27, 11:39 pm |
| Thanks, Willy.
Willy wrote:
> Very Nicely done Suz.
> W
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:45b8fff3$1_1@cnews:
> JoeB wrote:
>
> I worked on the script a bit more, JoeB - sorry I didn't send this
> before you put out your "final scripts" post, but I think you'll be
> pleased with the changes.
> 1. First of all, I included in this one script the ability to
> choose
> the suffix to add to the file names - this way, only one script is
> needed.
> 2. Secondly, since the same problem exists for all three types of
> splits - to RGB, to HSL, and to CMYK - I added the option to choose
> which split is being done. I think it now works like a charm, saving
> the files with names that are recognizeable in all cases.
> 3. And thirdly, I added some try-except logic to the beginning of
> the
> script to remove the pspsplittemp directory, if it already exists (may
> be left over from a previous run of the script.
>
> Do to the inclusion in this version of the script of the ability to
> split to HSL or CMYK as well as to split to the RGB channels, I
> renamed the script.
>
> This script is now, as the kids say, "the bomb" - at least until a
> patch for PSP XI fixes the problem! And even with the 2 dialogs, once
> the script starts, there are really no more "clicks" needed when
> splitting to RGB than are needed to run the split process from the
> menus, which takes 3 clicks. Give it a try and see what you think.
> Suz
>
A much more elegant solution, Suz. I wasn't aware that the problem in
v.11.11 existed in all 3 types of splits, but this covers them all.
I'll see if I can cancel my original post, and I'll change the info I
put in the header of the scripts I posted to reflect what this script
does, and post your script with that info. Hope that works for you.
Regards,
JoeB
| |
|
|
| Vern Stump 2007-01-27, 11:39 pm |
| JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in
> news:45b8fff3$1_1@cnews:
>
>
> Suz, I've put info in the header of the script about what it does,
> etc., and am attaching it. Do you think that info should be there
> and, if so, is it OK as such or you can change it as you see fit.
>
> Once the script is done I would like to post it on the v.XI group
> where this issue was raised after the release of the 11.11 patch.
> I
> had posted a message there earlier about the previous scripts but
> have
> cancelled that one.
>
> Also, I note that SR has suggested another temp save directory, so
> your response to that will determine whether that change will be
> made
> also. I don't know if having a specified existing path like the
> one
> suggested by SR might cause problems for some users, nor do I know
> if
> there would be any users who wouldn't have permissions to write
> and
> delete a folder from the C drive as is the present case with the
> script.
>
> I have not renamed the attached script with the header info added.
>
> Regards,
>
> JoeB
Combine to RGB work fine.
Combine to HSL and CMYK do not work correctly.
Vern
| |
| SuzShook 2007-01-27, 11:39 pm |
|
Vern Stump wrote:
> JoeB wrote:
>
> Combine to RGB work fine.
> Combine to HSL and CMYK do not work correctly.
>
> Vern
I'm fixing that right now, Vern....will be ready in a few minutes! Suz
| |
| SuzShook 2007-01-27, 11:39 pm |
| underprocessable | |
| Willy 2007-01-27, 11:39 pm |
| Thanks Suz, I appreciate your knowledge and hard work on this.
W
| |
| Spandex Rutabaga 2007-01-27, 11:39 pm |
| SuzShook wrote:
>
> Vern Stump wrote:
[color=darkred]
> I'm fixing that right now, Vern....will be ready in a few minutes! Suz
Suz, you should be using your own qua lity assu rance department
not Corel's :)
| |
| Vern Stump 2007-01-27, 11:39 pm |
| SuzShook wrote:
> JoeB wrote:
>
> I'm hoping we have the final version attached, Joe and Willy.
> Thanks
> to Willy, I was able to extract the name of the Temp folder, and
> write the files to that folder, deleting them at the end of the
> script. This is slick! And as Vern noted, the recombine did not
> work, because I named the split images incorrectly in the previous
> version. Give this version a try, and let me know if it works for
> you. I sort of reworked the comments, too - and credited all
> three
> of the "authors". Suz
Suz Shook, Willy, and JoeB:
Great teamwork!!!
The script works as advertised. I ran it several times. It ran
flawlessly every time.
Thanks, Vern
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:45b934bd_3@cnews:
> JoeB wrote:
>
> I'm hoping we have the final version attached, Joe and Willy. Thanks
> to Willy, I was able to extract the name of the Temp folder, and write
> the files to that folder, deleting them at the end of the script.
> This is slick! And as Vern noted, the recombine did not work, because
> I named the split images incorrectly in the previous version. Give
> this version a try, and let me know if it works for you. I sort of
> reworked the comments, too - and credited all three of the "authors".
> Suz
>
I'd say you definitely have the final version here, and you did a better
job of the description than I had. There are 2 very small details in
the header stuff to address.
I appreciate inclusion in the Author line, but wouldn't mind if you made
it JoeB rather than just Joe.
More important, in your Description when you give the example of how the
sequence numbers work, you have given an example where you say:
"For example, if you choose to split to RGB channels, and choose a
sequence number of 4, the split images will be named:
### Red_1.bmp
### Green_1.bmp
### Blue_1.bmp
You'll have to either change the number "4" or change the numbers beside
the channel colors to a 4.
With that done, I think it should be posted in the v.XI group, where
this issue first appeared. I would suggest that, as this isn't in the
wild yet, it be renamed to remove the mod 1 part. The post in that
group could be a real brief intro and then just a copy of your
Description info from the scripts header. Just my thoughts.
Good work getting this working as slick as it does!
Regards,
JoeB
| |
| SuzShook 2007-01-27, 11:39 pm |
| underprocessable | |
| Willy 2007-01-27, 11:39 pm |
| Works for me Suz.
Thanks again.
W
"SuzShook" <suzshook@adelphia.net> wrote in message
news:45b9652f$1_2@cnews...
> JoeB wrote:
>
> Made those changes, Joe, and also changed the file type to JPG, and saved
> with a compression factor of 99. This makes for a very small file, and
> does not affect the quality of the images in the PSP workspace. Joe, if
> WIlly and Vern and you can run this successfully, I think you can go ahead
> and re-post in the XI ng. Suz
>
>
| |
|
| "Willy" <willy@hotmail.com> wrote in news:45b96dbe_2@cnews:
> Works for me Suz.
> Thanks again.
> W
Except that I believe SR's concern about how saving in jpg will change
people's Save options, which could be disasterous for the less experienced.
I've posted my thoughts in the other threads on this script, and think the
save format has to be a lossless one that won't be destructive even if it
changes some save option of that format.
Regards,
JoeB
| |
| Vern Stump 2007-01-27, 11:39 pm |
| JoeB wrote:
> "Willy" <willy@hotmail.com> wrote in news:45b96dbe_2@cnews:
>
>
> Except that I believe SR's concern about how saving in jpg will
> change
> people's Save options, which could be disasterous for the less
> experienced. I've posted my thoughts in the other threads on this
> script, and think the save format has to be a lossless one that
> won't
> be destructive even if it changes some save option of that format.
>
> Regards,
>
> JoeB
All combinations worked. I definitely agree with SR's concerns
along with JoeB's agreement. If folks do NOT understand jpg Save
options, their jpg saves can be
disastrous.
Vern
| |
| Willy 2007-01-27, 11:39 pm |
| I guess an alternative would be to save the name3 and 4 file at a low
compression.
W
"JoeB" <mymail@myserver.com> wrote in message
news:Xns98C3CEF5E512EJoeB@216.191.232.194...
> "Willy" <willy@hotmail.com> wrote in news:45b96dbe_2@cnews:
>
>
> Except that I believe SR's concern about how saving in jpg will change
> people's Save options, which could be disasterous for the less
> experienced.
> I've posted my thoughts in the other threads on this script, and think the
> save format has to be a lossless one that won't be destructive even if it
> changes some save option of that format.
>
> Regards,
>
> JoeB
| |
| Willy 2007-01-27, 11:39 pm |
| I guess an alternative would be to save the name3 and 4 file at a low
compression.
Another option is to set the compression in the registry to 10 or so. I hate
to have to do it that way, but it is a possibility.
see edit registry > KEY_CURRENT_USER\Software\Corel\Paintshop
Pro\11\CmdFile\JPEGOptimizer
Since we are in the trusted mode anyway that might not be to bad an idea.
W
"JoeB" <mymail@myserver.com> wrote in message
news:Xns98C3CEF5E512EJoeB@216.191.232.194...
> "Willy" <willy@hotmail.com> wrote in news:45b96dbe_2@cnews:
>
>
> Except that I believe SR's concern about how saving in jpg will change
> people's Save options, which could be disasterous for the less
> experienced.
> I've posted my thoughts in the other threads on this script, and think the
> save format has to be a lossless one that won't be destructive even if it
> changes some save option of that format.
>
> Regards,
>
> JoeB
| |
| SuzShook 2007-01-27, 11:39 pm |
| underprocessable | |
| Vern Stump 2007-01-27, 11:39 pm |
| SuzShook wrote:
> JoeB wrote:
>
> You are right - that's exactly what happens. So I've changed back
> to
> .bmp, as you started with, Joe. Final (hopefully) version
> attached. Hope everyone tests one more time to be sure I didn't
> introduce any
> errors! Thanks for the collaborative effort! Suz
Work great!!!
Thanks, Vern
| |
| Willy 2007-01-27, 11:39 pm |
| Suz a couple of house cleaning comments.
The if statements still add .jpg
If you wanted to use the jpg and the users settings just leave the line
blank. For example the compression line would be blank and it will use the
last setting.
I think it maybe better to remove the file as the next command after
saving. This would help people very short of space.
Like this:
# FileSaveAs
App.Do( Environment, 'FileSaveAs', {
'Encoding': {
'JPG': {
'Variant': App.Constants.JpegFormat.Standard,
'ChromaSubSampling':
App.Constants.ChromaSubSampling.YCC_1x1_1x1_1x1,
}
},
'FileName': Name1,
'FileFormat': App.Constants.FileFormat.JPG,
'FormatDesc': u'JPG JPEG ',
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Silent,
'AutoActionMode': App.Constants.AutoActionMode.AllAlways
},
'SilentProperties': []
})
os.remove(Name1)
I did change to silent on the Execution Mode.
W
"SuzShook" <suzshook@adelphia.net> wrote in message
news:45ba034b$1_3@cnews...
>
>
> JoeB wrote:
>
> You are right - that's exactly what happens. So I've changed back to
> .bmp, as you started with, Joe. Final (hopefully) version attached. Hope
> everyone tests one more time to be sure I didn't introduce any errors!
> Thanks for the collaborative effort! Suz
>
>
| |
| Willy 2007-01-27, 11:39 pm |
| You can really gets some different results by using the combine JPG for the
split to CMYK and the other split/combine options.
Never noticed that you could do that.
W
"Willy" <willy@hotmail.com> wrote in message news:45ba36df_2@cnews...
> Suz a couple of house cleaning comments.
> The if statements still add .jpg
> If you wanted to use the jpg and the users settings just leave the line
> blank. For example the compression line would be blank and it will use the
> last setting.
> I think it maybe better to remove the file as the next command after
> saving. This would help people very short of space.
> Like this:
> # FileSaveAs
> App.Do( Environment, 'FileSaveAs', {
> 'Encoding': {
> 'JPG': {
> 'Variant': App.Constants.JpegFormat.Standard,
>
> 'ChromaSubSampling':
> App.Constants.ChromaSubSampling.YCC_1x1_1x1_1x1,
>
> }
> },
> 'FileName': Name1,
> 'FileFormat': App.Constants.FileFormat.JPG,
> 'FormatDesc': u'JPG JPEG ',
> 'GeneralSettings': {
> 'ExecutionMode': App.Constants.ExecutionMode.Silent,
> 'AutoActionMode': App.Constants.AutoActionMode.AllAlways
> },
> 'SilentProperties': []
> })
>
> os.remove(Name1)
> I did change to silent on the Execution Mode.
> W
>
> "SuzShook" <suzshook@adelphia.net> wrote in message
> news:45ba034b$1_3@cnews...
>
>
| |
| SuzShook 2007-01-27, 11:39 pm |
| Thanks so much for "testing", Vern. Suz
Vern Stump wrote:
> SuzShook wrote:
>
> Work great!!!
>
> Thanks, Vern
| |
| SuzShook 2007-01-27, 11:39 pm |
| underprocessable | |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:45ba5412_1@cnews:
> I think we've got it now - fixed the "if" statements, and moved the
> removes for the files right after the Saves. If nobody objects, I'd
> like to place this script on my site with my other scripts. Might be
> helpful to others who don't read the newsgroups. I'll still credit
> you, Willy, and JoeB. Suz
>
No objection at all to the script being placed on your site. As you said,
not everybody (maybe not most) read the groups so it will give them a
workaround until Corel gets around to it.
I'll still post it on the v.XI group for those who do read it and those who
have posted there looking for help with the issue. For the most part I'll
just quote your description from the script's header, as it spells things
out quite well.
Glad to see the saves moved back to a lossless format, 'cause after seeing
SR's post I realized how many posts I see where people say the Saved and
can't understand why their images look bad. A 99 compression result would
really be a shock to some of those people :-) Anybody running a system
where they don't have the space to handle one bmp save before it's deleted
shouldn't be using PSPXI anyway.
Regards,
JoeB
| |
| Willy 2007-01-27, 11:39 pm |
| Looks Good Suz, Thanks again.
W
"SuzShook" <suzshook@adelphia.net> wrote in message news:45ba5412_1@cnews...
>I think we've got it now - fixed the "if" statements, and moved the removes
>for the files right after the Saves. If nobody objects, I'd like to place
>this script on my site with my other scripts. Might be helpful to others
>who don't read the newsgroups. I'll still credit you, Willy, and JoeB.
>Suz
>
> Willy wrote:
>
>
>
| |
| SuzShook 2007-01-27, 11:39 pm |
| JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:45ba5412_1@cnews:
>
>
> No objection at all to the script being placed on your site. As you
> said, not everybody (maybe not most) read the groups so it will give
> them a workaround until Corel gets around to it.
Thanks, Joe.
>
> I'll still post it on the v.XI group for those who do read it and
> those who have posted there looking for help with the issue. For the
> most part I'll just quote your description from the script's header,
> as it spells things out quite well.
Please do!
>
> Glad to see the saves moved back to a lossless format, 'cause after
> seeing SR's post I realized how many posts I see where people say the
> Saved and can't understand why their images look bad. A 99
> compression result would really be a shock to some of those people
> :-) Anybody running a system where they don't have the space to
> handle one bmp save before it's deleted shouldn't be using PSPXI
> anyway.
>
> Regards,
>
> JoeB
Yes - I think, in the end, it was the best way to go. Thanks for all your
help. Suz
| |
| SuzShook 2007-01-27, 11:39 pm |
| Thanks for your help, too, Willy. Suz
Willy wrote:[color=darkred]
> Looks Good Suz, Thanks again.
> W
>
> "SuzShook" <suzshook@adelphia.net> wrote in message
> news:45ba5412_1@cnews...
| |
| Vern Stump 2007-01-27, 11:39 pm |
| SuzShook wrote:[color=darkred]
> I think we've got it now - fixed the "if" statements, and moved
> the
> removes for the files right after the Saves. If nobody objects,
> I'd
> like to place this script on my site with my other scripts. Might
> be
> helpful to others who don't read the newsgroups. I'll still
> credit
> you, Willy, and JoeB. Suz
> Willy wrote:
I was out this afternoon. Suz, Willy, and JoeB: The script works
very well....V8 thru v11.11. Another fine group job by the "unpaid
beta testers."
Thanks, Vern
| |
|
| "SuzShook" <suzshook@adelphia.net> wrote in news:45ba6631$1_2@cnews:
> JoeB wrote:
>
> Thanks, Joe.
>
> Please do!
I posted the script in the XI group, and also mentioned that you would
be posting it on your site. I didn't put a link to your site because I
didn't know when you'd have it posted or what the actual link would be
to the page with the script on it.
I suspect that with so many people having decided to put off using v.XI
there might not be a whole bunch of people who do use it who even know
about spltting channels so the demand for the script may not be great.
But it was great fun working on the puzzle, and I learned a bit more
about scripting (like how to call the os, for example, although my
knowledge is still basic so would only use it for basic stuff!)
Regards,
JoeB
[color=darkred]
>
> Yes - I think, in the end, it was the best way to go. Thanks for all
> your help. Suz
>
>
>
| |
|
| "Vern Stump" <VictorDog@email.suppressed> wrote in news:45ba9232_2@cnews:
> I was out this afternoon. Suz, Willy, and JoeB: The script works
> very well....V8 thru v11.11. Another fine group job by the "unpaid
> beta testers."
>
> Thanks, Vern
>
>
Glad it works for you Vern. Of course, there is no need for it in any
version except the patched v.XI, 'cause it is the latter in which the Split
Channel stuff got broken, but it's always nice when something is cross-
program compatible :-)
Regards,
JoeB
| |
| SuzShook 2007-01-27, 11:39 pm |
|
Vern Stump wrote:
> SuzShook wrote:
>
> I was out this afternoon. Suz, Willy, and JoeB: The script works
> very well....V8 thru v11.11. Another fine group job by the "unpaid
> beta testers."
>
> Thanks, Vern
Thanks, Vern! Suz
| |
| SuzShook 2007-01-27, 11:39 pm |
|
JoeB wrote:
> "SuzShook" <suzshook@adelphia.net> wrote in news:45ba6631$1_2@cnews:
>
>
> I posted the script in the XI group, and also mentioned that you would
> be posting it on your site. I didn't put a link to your site because
> I didn't know when you'd have it posted or what the actual link would
> be to the page with the script on it.
>
> I suspect that with so many people having decided to put off using
> v.XI there might not be a whole bunch of people who do use it who
> even know about spltting channels so the demand for the script may
> not be great. But it was great fun working on the puzzle, and I
> learned a bit more about scripting (like how to call the os, for
> example, although my knowledge is still basic so would only use it
> for basic stuff!)
>
> Regards,
>
> JoeB
Thanks, Joe. I should have it up this weekend - still working on the
accompanying documentation. Thanks again for all your help - it was great
fun solving the puzzle, and so much better together! Suz[color=darkred]
>
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|