This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > September 2007 > PING scripters - crop mod requested
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 |
PING scripters - crop mod requested
|
|
|
| As always, looking for a way to make a new feature work in v.9 :-)
Suz, Willy, SR, etc. will recall that SR gave us a script that emulates the
rotate and crop feature of Photoshop. PSPX2 now has that feature, as well
as adding Crop to New Image to the feature. It works faster than the
script, of course, but the script works fine, but doesn't have the Crop to
New Image feature.
Well, part of that is easy to fix, by just having the script first
duplicate the original image and then run on the duplicate, and it works
fine like that, giving you a rotated (or not, if not needed) crop that is a
copy of the original while leaving the original untouched. And I should
add that I have also modified the script so that there is no prompt to
select an aspect ratio - it just gives me 4x4 automatically, 'cause I know
I'm going to resize the crop box for whatever crop I want.
And once you get your first cropped image, you can then click on the title
bar of the original to give it focus and run the script again if you want
to do more crops from that image (which is where the X2 tool helps your
workflow).
What I'm asking is if there is a way to return focus to the original after
I have duplicated it and done the crop on the duplicate? Then you'd just
have to run the script again without first having to give focus to the
original. I can't figure out how to do that.
Optimal, of course, would be to have the script not only return focus to
the original but run the first part of the script - i.e., duplicate again
and set up the box in edit selection mode, ready to do the crop once you
had moved and resized the box. But that's likely asking for more than is
reasonable :-)
Regards,
JoeB
| |
| SuzShook 2007-09-11, 6:19 pm |
| JoeB wrote:
> As always, looking for a way to make a new feature work in v.9 :-)
>
> Suz, Willy, SR, etc. will recall that SR gave us a script that
> emulates the rotate and crop feature of Photoshop. PSPX2 now has
> that feature, as well as adding Crop to New Image to the feature. It
> works faster than the script, of course, but the script works fine,
> but doesn't have the Crop to New Image feature.
>
> Well, part of that is easy to fix, by just having the script first
> duplicate the original image and then run on the duplicate, and it
> works fine like that, giving you a rotated (or not, if not needed)
> crop that is a copy of the original while leaving the original
> untouched. And I should add that I have also modified the script so
> that there is no prompt to select an aspect ratio - it just gives me
> 4x4 automatically, 'cause I know I'm going to resize the crop box for
> whatever crop I want.
>
> And once you get your first cropped image, you can then click on the
> title bar of the original to give it focus and run the script again
> if you want to do more crops from that image (which is where the X2
> tool helps your workflow).
>
> What I'm asking is if there is a way to return focus to the original
> after I have duplicated it and done the crop on the duplicate? Then
> you'd just have to run the script again without first having to give
> focus to the original. I can't figure out how to do that.
>
> Optimal, of course, would be to have the script not only return focus
> to the original but run the first part of the script - i.e.,
> duplicate again and set up the box in edit selection mode, ready to
> do the crop once you had moved and resized the box. But that's
> likely asking for more than is reasonable :-)
>
> Regards,
>
> JoeB
Theoretically, adding a SelectDocument step at the end of the script SHOULD
return focus to the original image, JoeB:
# SelectDocument
App.Do( Environment, 'SelectDocument', {
'SelectedImage': -1,
'Strict': App.Constants.Boolean.false,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
However, I seem to recall that though there are problems with this, and it
doesn't seem to work. I tried it, and when the script is restarted, it
works on the cropped image, and not the original. I can't get this to work
correctly, Joe, but others might have an idea. Suz
| |
|
| "SuzShook" <suzshook@roadrunner.com> wrote in news:46e52bf2_1@cnews:
> JoeB wrote:
>
> Theoretically, adding a SelectDocument step at the end of the script
> SHOULD return focus to the original image, JoeB:
>
>
> # SelectDocument
> App.Do( Environment, 'SelectDocument', {
> 'SelectedImage': -1,
> 'Strict': App.Constants.Boolean.false,
> 'GeneralSettings': {
> 'ExecutionMode': App.Constants.ExecutionMode.Default,
> 'AutoActionMode': App.Constants.AutoActionMode.Match
> }
> })
>
> However, I seem to recall that though there are problems with this,
> and it doesn't seem to work. I tried it, and when the script is
> restarted, it works on the cropped image, and not the original. I
> can't get this to work correctly, Joe, but others might have an idea.
> Suz
That was the problem I was having, Suz. I even tried stuff like
selecting the original document and doing something to it, like
promoting the background layer, but that doesn't work either. That's
why I thought I'd ask for help. Thanks for the try!
Regards,
JoeB
| |
|
| JoeB <mymail@myserver.com> wrote in
news:Xns99A7CD8C11501JoeB@207.107.16.194:
I made an error in my post below. It was Simon Walden who wrote the
script, with input from others, not SR who wrote it although she
provided much of the required info.
Also, I am attaching zips of the script (one for v.8-9 and one for v.X,
which uses the Pick tool instead of the Deform tool).
Regards,
JoeB
> As always, looking for a way to make a new feature work in v.9 :-)
>
> Suz, Willy, SR, etc. will recall that SR gave us a script that
> emulates the rotate and crop feature of Photoshop. PSPX2 now has that
> feature, as well as adding Crop to New Image to the feature. It works
> faster than the script, of course, but the script works fine, but
> doesn't have the Crop to New Image feature.
>
> Well, part of that is easy to fix, by just having the script first
> duplicate the original image and then run on the duplicate, and it
> works fine like that, giving you a rotated (or not, if not needed)
> crop that is a copy of the original while leaving the original
> untouched. And I should add that I have also modified the script so
> that there is no prompt to select an aspect ratio - it just gives me
> 4x4 automatically, 'cause I know I'm going to resize the crop box for
> whatever crop I want.
>
> And once you get your first cropped image, you can then click on the
> title bar of the original to give it focus and run the script again if
> you want to do more crops from that image (which is where the X2 tool
> helps your workflow).
>
> What I'm asking is if there is a way to return focus to the original
> after I have duplicated it and done the crop on the duplicate? Then
> you'd just have to run the script again without first having to give
> focus to the original. I can't figure out how to do that.
>
> Optimal, of course, would be to have the script not only return focus
> to the original but run the first part of the script - i.e., duplicate
> again and set up the box in edit selection mode, ready to do the crop
> once you had moved and resized the box. But that's likely asking for
> more than is reasonable :-)
>
> Regards,
>
> JoeB
>
begin 644 Crop and Rotate_v_8_9.zip
M4$L#!!0````(`*Z!KC8!6J](D0L``.LE```?````0W)O<"!A;F0@4F]T871E
M7W9?.%\Y+E!S<%-C<FEP=.T:_6_;MO+G%NC_<"]!(;MS53MMMC98!R1UNF;+
M$B-.UQ6I\<!(M,T7211(.HXWY']_=Z2H#UM)M[V^AV%X*M;)Y-WQ>-]WZE3)
M%'Y@.MK/<Q!I+I6!)X\>3FDY969>6WOT,.93&$=*Y&:D9,Z5$5QWNGN/'@(^
MBIN%RN`W]XN>8']AYE(%>[`(QB*5&7Q@2<RS'BR7R_"'A38_"JW#2*9!KX;U
M1N8K)69S8Q$[;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
end
| |
| SuzShook 2007-09-11, 6:19 pm |
| underprocessable | |
|
| "SuzShook" <suzshook@roadrunner.com> wrote in news:46e5c03d_3@cnews:
>
> I did find a way to "sort of" get the original image to be active -
> actually, it gets a copy of the original image to be active when the
> script finishes. It seems like the last image created will be the
> image that retains focus at the end of the script. I'm not sure
> that's a principle that can be followed at all times in in all
> instances, but it seems to work. So I added this series of steps at
> the end of Simon's script:
> Select -1 document - gives me the original document
> Duplicate
> Select 0 document - establishes focus of duplicate image
> Select -2 document - gives me the original document again
> File close - closes the original document
> Select 0 document - reestablishes focus on duplicate image
> Fit to image - took away the scroll bars that had appeared
> Select the Pan tool - just to get rid of the Crop box
>
> What do you think, JoeB - would this meet your needs? You would need
> to run this script TRUSTED, as it closes the original file, but it
> does allow you to continue working on a copy of the original, which is
> the image in focus when the script terminates each time. If you want
> to give it a try, add the steps in the attached txt file to Simon's
> script at the end, and give it a whirl. Let me know how you make out,
> JoeB. Suz
>
I'm afraid it didn't work in PSP9, Suz. I have attached Simon's script
with your code added (under Simon's code, and before the Pause Script
stuff, you'll see 3 asterisks in a vertical row. Underneath that is
where I put your stuff).
I get the crop all right, and I briefly see that there's a cropped
duplicate at the end, but that duplicate disappears and what I'm left
with is the original image, cropped. Is there something wrong with how
I inserted the code? If it still works for you, could you post the
actual changed scripts that work for you?
Regards,
JoeB
| |
| SuzShook 2007-09-11, 10:18 pm |
| underprocessable | |
|
| "SuzShook" <suzshook@roadrunner.com> wrote in news:46e5d0d4$1_2@cnews:
> Here's the copy I've been running, JoeB - works fine for me in PSP 9.
> Suz
>
And it works a treat for me too, Suz! That may be the advantage of posting
the script, because the text version may perhaps lose something in spacing
or whatever that just doesn't work. Did the one I sent you work for you in
v.9?
With yours I was concerned that the closing might effect the original image
- i.e., the original might have had something done to it by the user and
then closing it would overwrite the original when you didn't want it to,
but that doesn't happen. In fact, the original just disappears, I'm not
sure how, without overwriting the file even if you change the original
before saving it and still running the script.
So this does the job for sure. Good work, and thanks! Another one that
may work for other users of earlier versions! (I renamed the script by
adding the word multicrop to the end of the script name, so I know it's to
be used to do multiple crops from an image).
Regards,
JoeB
| |
| SuzShook 2007-09-11, 10:18 pm |
| Great, JoeB - so glad it works. I didn't even try the one you sent - just
attached the one I was testing with. Suz
JoeB wrote:
> "SuzShook" <suzshook@roadrunner.com> wrote in news:46e5d0d4$1_2@cnews:
>
>
>
> And it works a treat for me too, Suz! That may be the advantage of
> posting the script, because the text version may perhaps lose
> something in spacing or whatever that just doesn't work. Did the one
> I sent you work for you in v.9?
>
> With yours I was concerned that the closing might effect the original
> image - i.e., the original might have had something done to it by the
> user and then closing it would overwrite the original when you didn't
> want it to, but that doesn't happen. In fact, the original just
> disappears, I'm not sure how, without overwriting the file even if
> you change the original before saving it and still running the script.
>
> So this does the job for sure. Good work, and thanks! Another one
> that may work for other users of earlier versions! (I renamed the
> script by adding the word multicrop to the end of the script name, so
> I know it's to be used to do multiple crops from an image).
>
> Regards,
>
> JoeB
| |
| Spandex Rutabaga 2007-09-12, 6:21 pm |
| JoeB wrote:
> I made an error in my post below. It was Simon Walden who wrote the
> script, with input from others, not SR who wrote it although she
> provided much of the required info.
Well, that explanation helps. I thought I was losing my mind
there for a while since I had no recollection of authoring the
script (or even wanting the feature especially :)
| |
|
| Spandex Rutabaga <SpRu@agabatur.xednaps> wrote in news:46E7F60F.95356D79
@agabatur.xednaps:
> JoeB wrote:
>
>
> Well, that explanation helps. I thought I was losing my mind
> there for a while since I had no recollection of authoring the
> script (or even wanting the feature especially :)
>
I had forgotten to look at the header, and my brain (such as it is)
recalled that you had posted some info on getting the rotation coordinates
from the toolbar that was kind of vital to being able to provide a rotation
type crop without loss of detail. Not something I do a lot, but sometimes.
Regards,
JoeB
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|