Rectangular Marquee with fixed ratio

Hello.
I'am trying to make selection transform similar to "Rectangular Marquee Tool" with fixed ratio. I've got ratio changed while pulling a side.
Its OK with "Shift" button pressed before pull occured. I'am looking for solution that alows me to transform selection without "Shift" pressed.
Any solutions?

digcode wrote:
Hello.
I'am trying to make selection transform similar to "Rectangular Marquee Tool" with fixed ratio. I've got ratio changed while pulling a side.
Its OK with "Shift" button pressed before pull occured. I'am looking for solution that alows me to transform selection without "Shift" pressed.
Any solutions?
Shift for the transform tool like transform selection constrains the selection to the current aspect ratio. Shift for the marquee tool constrains the selection to square.  In any case shift has nothing to do with script code unless the code is executing an interactive Action or performing and interactive step like a scriptlisener step.
Just do the math. You know the AR and you can retrieve the documents width and height.  You may also want to rotate the AR or image so the images orientation works better with the AR you wanting to select.  
My crafting actions package contains 12 scripts I created for use within Actions two are Plug-ins based on Adobe's FitImage Plug-in script. One is named AspectRatioSelection. You may want to look at it.  It uses a function I created from scriptlistner code that can make selection or paths that are rectangle or oval in shape the size of the document or with a 25% border centered or from the top right of a document. The Script rotate the AR to match the document orientation. I did make one the made that rotation an option but never made that version public. It very easy to add that option if you need to.
Interavtive scripts are not that common and when come down to it there is not a DOM object for Transform.  In my Photo Collage Toolkit package in its Interactive Populate Collage script after the script places in an image, it re-size and positions the image then the script put the user into and interactive transform using scriptlistener code.  The modifier keys will work the way Adobe programmed the feature to work. 
//==================== Interactive Transform ==============
function InteractiveTransform() {
  // Menu Edit>Free transform
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putEnumerated(cTID('Mn  '), cTID('MnIt'), cTID('FrTr'));
    desc1.putReference(cTID('null'), ref1);
    executeAction(cTID('slct'), desc1, DialogModes.NO);
The only way I can think it may be able to be done the way you want it to would be for you to code some interactive dialog window. Where you put up a dialog box over the selection and resize it when the user uses their mouse to drag a side or corner.  I have never code a interactive dialog GUI and therefore don't know if that would even be possible.  I have come across some dynamic dialogs but never one positioned to a selection.  You could put out a dialog or prompt to information as to how to resize the selection or accept the current then resize the selection and refresh the display and loop till the selection is accepted or canceled in this  dialog. Perhaps using arrow keys in the dialog where the script handles the resize stepping a does it from the center to maintain position and only allow size changing without rotation.
Transform also allow rotation and distortion so be careful how you code it. Code in a cancel perhaps a reset also.
My free Photoshop Packages can be downloaded from this link  http://www.mouseprints.net/Photoshop.html

Similar Messages

  • Use the "Rectangular Marquee Tool" with my mouse

    Hey.
    When I use the "Rectangular Marquee Tool" with my mouse, it is often difficult to do it accurately.
    Is there an easier way to do it than with the mouse, -  can I manually enter the size of my selection ..
    Any advice is welcome.

  • Issues with Rectangular Marquee Tool [was: I have a question]

    The problem is with the 'rectangular marquee tool'  ... after I select a box, the tool defaults to a marquee that eliminates a portion of the first selected box.  The curser changes to show the '+' curser with an 'x' in the lower right of the cursor ... how do I get rid of this?

    It sounds like you have Intersect with selection enabled in the tool options bar instead of the default of New selection.
    Though it sounds like you want to add to the prevous selection?
    I usually just leave the default of New selection and use the following keyboard shortcuts instead of clicking on different options in the tool options bar.
    http://help.adobe.com/en_US/photoshop/cs/using/WSD578BD7D-07BC-46f6-AAC2-6E491E8AD818a.htm l#WSB7273C71-12FE-4f05-8E2C-D4A571E0692Ba

  • How can I create Hyperlinks with a Fixed-Ratio EPUB?

    I am using InDesign 2014's fixed ratio epub exporter. It looks great but all my hyperlinks are lost and I can't find any resources on how to maintain them or to recreate them in a reader program, if possible. Any help much appreciated?

    Are the hyperlinks you want to make supposed to go to specific pages of the document, or to a url.
    If it's to go to pages of the document, then click the Create Bookmarks when creating the TOC, it's in the bottom left, you may need to Show Options in the TOC dialog box.
    If it's for a URL, or to link to a different page other than what the TOC points to, then you can
    New Hyperlink Destination
    Choose URL/Page
    Insert a unique name
    Insert the url/page no.
    Then say ok
    Go to Hyperlink Options
    Type: URL
    Name: Choose the unique name you've created
    URL: it should show up as what you've put in the Name, if not just type it in
    similar for page no.
    Remember to inlcude bookmarks and hyperlinks when creating the PDF too.

  • Photoshop Elements 11 - Rectangular Marquee functionality gone

    I "upgraded" from Photoshop Elements 8 (PE8) to Photoshop Elements 11 (PE11), and have regretted it every day. I use the Macintosh version and have used PE for many years. A refund is in my immediate future.
    One bit of functionality in PE8 THAT IS NOT in PE11 is the "Rectangular Marguee" options.  In PE8, selecting "Rectangular Marquee" showed three options: "Normal" "Fixed Size" "Fixed Ratio".  "Normal" allowed freeform selection of areas of the photo. "Fixed Size" created a Marquee that matched the dimensions you provide (such as selecting a 3" x "5" set portion of a photo) "Fixed Ratio" allowed a size ratio of the marquee. Here is an example of what I did with the "Fixed Size": My wife is a teacher and takes many pics of her kids for a variety of reasons. I can set a "Fixed Size" Rectangular Marquee to select a portion of a picture to segregate just the child's face that I copy/paste into MSWord to print the equivalent of a sheet of school pictures to allow the kids to learn each other's names.
    Note also that, simlar to another bug I reported that is easily reproduced by Adobe Tech Support, If I select a portion of a photo (1 1/2"w x 2"h for example as in the school pictures above) copy/paste into other software (MS Word in my case) results in a pasted image of about 5"w. 
    Many new features in PE11, many old features of PE8 GONE.
    Don't get me started with Adobe discarding the option of opening photos in PE11 utilizing their "Adobe Bridge" program like they allowed in PE8.
    HELP, Adobe!  Please fix these bugs!

    I think you are maybe just not looking in the right place. For instance, the tool options are now down at the bottom of your screen rather than in the options bar at the top. If you don't see them, click the Tool Options button. Then for the Rectangular Marquee you should see:
    There's actually more functionality now with the new refine edge tool, not less.

  • Adobe Photoshop OpenGL Rectangular Marquee Bug

    Per this thread on the Adobe support forums, there is currently a bug with the Rectangular Marquee tool in Photoshop CS4 and CS5. The "marching ants" selection outline is not positioned correctly, making it difficult to tell if you have selected the correct pixels. This is extremely annoying.
    Turning off OpenGL Drawing in the Performance preferences fixes the problem, but also disables a number of useful features.
    The problem has been isolated specifically to Macs with an ATI Radeon card. I have the problem on my Mac Mini with an ATI Radeon HD 6630M, but not on my Macbook Pro with an NVIDIA GeForce 9400M.
    Chris Cox, and Adobe employee, said:
    Again, this is a bug in Apple's video card drivers.
    Adobe can't really fix it (we tried, but all we can do is work around it, and then the behavior changes every time Apple tries to fix the core bug).
    If you'd like to see it fixed, please let Apple know that this is important to you, so they'll put more priority on fixing their video card drivers.
    So, Apple, this is important to me.
    If you are also having this problem, please gang on.

    Kurt Lang wrote:
     …I haven't installed PS 6 under Snow Leopard, so don't know how the marquee will behave there, either.
    FWIW, the Ps Marquee bug is not there in the Photoshop 13.x beta running under Snow Leopard 10.6.8 on a 2007 MacBook which my wife had discarded and I rescued from the trash (its only problem had been a bulging battery chopking the trackpad).
    This may well be totally irrelevant, however, as Open GL is not available on the MacBook due to its integrated Intel GMA 950 graphics. 

  • Rectangular Marquee Tool (Short cut M)...

    I have upgraded to CS5. I cannot access to the Rectangular Marquee Tool with a short cut (M) any longer. M brings up the Eliptical Marquee Tool. Where is the Rectangular Marquee Tool? How can I access?
    Thnx

    Check the units you specified for the fixed size. My guess is that it's set to something larger than your image.
    Yes, thanks - I was just about to post a response to my own question. They were cm, rather than pixels!
    Cheers
    David

  • Rectangular Marquee tool broken in CS5.1?

    The rectangular marquee tool no longer seems to work when choosing the "Fixed size" option. It seems to just select the entire image area regardless of what values are entered.
    This is with version CS5.1 as provided in Creative Suite Design Premium CS5.5.
    I've had no problems with this tool in other versions. Can anyone else confirm this behaviour?
    I'm running OSX 10.6.7
    David

    Check the units you specified for the fixed size. My guess is that it's set to something larger than your image.
    Yes, thanks - I was just about to post a response to my own question. They were cm, rather than pixels!
    Cheers
    David

  • Rectangular marquee tool problem

    i used 'rectangular marquee tool to select an area . then i right clicked and select "stroke"  . but i am not satisfied with the result , because its corner was slightly jagged ( when i zoom it ) . feather was set to 0 . can anyone help me plz how to fix this ?

    May I suggest stroking on the Inside of your Marquee.
    Or switching to using the Rectangle Tool.  The options for stroking a shape offer a great deal of configurability...
    -Noel

  • Fixed ratio for crop tool

    I do a lot of photo cropping. Is it possible to set a fixed
    ratio for
    the crop tool? It can be done with the marquee tool, why not
    the crop tool.
    I know about Shift-Drag to constrain crop marquee.
    Thanks for any help,
    Martin

    Interesting, I'm getting the same thing over here. So you're
    not alone
    Marty. (FWs8 on winxp-home)
    You could use a mask if the crop is relatively small?
    Peter
    "marty" <[email protected]> wrote in message
    news:elg7ua$7mb$[email protected]..
    | Thomas Unger wrote:
    | > marty:
    | > I've never experienced that symptom (fw8 on
    winxp-pro). In fact I've
    used
    | > this method for several versions of fireworks on
    several platforms (mac
    and
    | > win) without seeing that, so I'm not sure what to
    suggest. Could be a
    | > keyboard shortcut conflict--unless it happens with the
    mouse as
    well... -Tom
    | > Unger
    |
    | I have fw8 on winxp-pro as well. It's a new installation of
    fireworks; I
    | have not changed any keyboard shortcuts from the default
    set.
    |
    | It happens with both the mouse and keyboard shortcut (C).

  • PDFs are low res even with Fixed Resolution deselected

    Motion 5.0.6
    I am working on a project with a single pdf file imported from Illustrator. There are no other layers in the file, the pdf has no filters applied and Fixed Resolution is selected off. Render is set to Full resolution and Quality to Normal. For some reason the image displays in low resolution when I zoom in. Any ideas? Thanks.

    When no camera is present, you simply scale the PDF image, or you can manipulate the Position.Z paramater.
    Fixed Resolution is Motion's way of keeping the brakes on a file that has potential for unlimited resolution. It's a safety net designed to keep performance reasonable.
    When a PDF is imported, it comes into Motion with the document dimensions with which it was created, and Motion will render it on the canvas with those dimensions and set the resolution of the image with those dimensions. As long as Fixed Resolution is checked, it will be treated as a standard image even though it might contain vector shapes.
    You have the option of unchecking Fixed Resolution, which will unleash your PDF on Motion and possibly affect the performance of the application (PDF vectors can consume huge amounts of video RAM especially when scaled to very large sizes.)
    Another way to go, without unchecking Fixed Resolution is to change the dimensions of the PDF document, and Motion allows you to do that from within the application.
    Below is a PDF I imported. Note the dimensions of 298x278:
    (The Media tab is selected and the PDF layer is also selected -- then in the Inspector, the Media tab is where you'll find these controls [along with the Fixed Resolution checkbox... for those who might not know how to get to it])
    Scaling the image greater than 100% in the canvas will result in softening of the image (like any other plain image) with fixed resolution on.
    Below, I have modified the Fixed Width and Fixed Height (dragging one will automatically change the other based on the Pixel Aspect Ratio setting.)  In this example, I have reset the Fixed Width to 2000.0.
    I can now resize (scale) my PDF up to the dimensions I have set with Fixed Width/Height -- with Fixed Resolution still on, and still maintain a pristine vector appearance of the image (as long as the Canvas view is at 100% or less).
    It still limits the PDF vectors to reasonable limits and allows you to get the smooth line appearance you expect from vector shapes.
    PS - You could even take advantage of the Fixed Resolution degrading the image as it gets "closer" in view by tweaking those parameters to create the illusion of losing focus.
    HTH

  • Rectangular Marquee Tool no longer moves

    Hi, I have CS2 on Windows XP. For some reason (probably operator error) I can no longer move the Rectangular Marquee Tool in a fixed size mode arond my picture. When I expand it to, for example, 8.5" x 11" it just sits there. I used to be able to expand it, then move it about the photo until I got it where I wanted to do the crop.Does anyone have any ideas what has happened? Also I notice that the crosshairs now have a little bar in the lower right quadrant when I roll my cursor on the photo. Not sure if that is significant. Thanks.

    This button enabled? See the screenshot.
    :-) miss_marple

  • Rectangular Marquee Tool screen artifacts

    Hi - I have a problem with Photoshop CS3 (version 10.0) on a Windows XP Professional computer. When I try to use the rectangular marquee tool to select an area of any image the selection marker leaves dotted artifacts across the parts of the images over which the selection marker has passed.
    I don't get the problem if I use any of the marquee tools and the artifacts are not actually written to the image. It's not runining the image but it is causing some problems when trying to be precise with my selections.
    Has anyone seen this problem before? I can provide screen shots if that would be of any help.
    Many thanks in advance,
    Mitch

    Video driver?

  • Delete area using Rectangular Marquee Tool

    Hi Sir/Mdm,
    I was wondering why I cannot delete an specific area using Rectangular Marquee Tool. I have dragged the Rectangular Marquee Tool to define an area then I hit the "Del" key on the keyboard. I was prompted with the "Fill->Contents> dialog box. Pls advise and thanks in advance.

    What do you want to accomplish by "Delete"?
    If you have a Background (no layers) then you can only fill it with pixels, as Background cannot have transparency.  You can cause a fill of the background color (as shown in the background swatch in the Tools panel) without a prompt by holding the Control key down when pressing Delete.
    The menu gives you access to a number of other useful fill options for a Background, such as Content Aware Fill.
    To make a Background into a Layer, which can support transparency, double click the Background in the Layers panel, then confirm the dialog.  Pressing Delete with a part of a non-background layer selected will simply make the selected part transparent.
    -Noel

  • CL_GUI_DOCKING_CONTAINER with fix size

    Hi!
    Is it possible to create instance of CL_GUI_DOCKING_CONTAINER with fix size?

    lv_style = cl_gui_control=>ws_child + cl_gui_control=>ws_border + cl_gui_control=>ws_visible.
        CREATE OBJECT docking
          EXPORTING
            repid                       = repid
            dynnr                       = dynnr
            side                        = docking->dock_at_top
            ratio                       = 80
            style                       = lv_style
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6

Maybe you are looking for

  • Reading file in a 2d Array

    Hi there I was wondering if anyone has some suggestions on how i can read a tab limited file in a two dimensional array. heres some i was trying but doesn't seem to get me the results i want 1) Read one line at a time into an array 2) Add the array t

  • Jsp keep for a workshop web project

    hi i've created an ear with a web project in my workshop (wl9.2). I've published it through the workshop and it was running smoothly. I've entered the console of my server and checked the "jsp keep" flag of the web project. I've restarted the server

  • Output determination analysis for Handling Unit

    Hi Friends, Can any body help me on how to check the output determination analysis for  Handling unit outputs. I tried checking the document flow through delivery of the Handling unit but could not check. thank you for your help in advance.

  • Creating a Document Category

    Hi SDNers, We are running ECC 6.0/Funds Management with Former Budgeting. When running FMMC to close Earmarked Funds, the program results in a short dump.  When run in dialog mode, the following error message is displayed: Document Type 11 is not def

  • Need Activity/Order GUID's based on Partners.

    Hi, I need to find the activity/order GUID based on partner number/GUID. I have the GUID/number of the partner and I want to find all the orders/activities it is used in. I cannot use CRM_ORDER_READ and then check the partner data as it will slow dow