Photoshop area selection info

Hello,
  I'd like to get information about the current selected area in the opened image, as a rect (top, left, bottom, right). I succeeded to select an area with the following code, but now I need to get the info if user changes it:
SPErr SelectArea ( const double inTop,
                             const double inLeft,
                             const double inBottom,
                             const double inRight)
    ASSERT(sPSActionControl);
    SPErr error = kSPNoError;
    PIActionDescriptor result = NULL;
    PIActionDescriptor saveAsDescriptor = NULL;
    // We have to construct a saveAsDescriptor of classRectangle because
    // that is what the selection key is:
    PIActionDescriptor rectangle = NULL;
    PIActionReference reference = NULL;
    error = sPSActionDescriptor->Make(&saveAsDescriptor);
    if (error) goto returnError;
    error = sPSActionReference->Make(&reference);
    if (error) goto returnError;
    error = sPSActionReference->PutProperty(reference,
                                            // Normally this would be classProperty, but a selection is
                                            // actually an alpha channel:
                                            classChannel,
                                            keySelection);
    if (error) goto returnError;
    error = sPSActionDescriptor->Make(&rectangle);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutUnitFloat(    rectangle, keyTop, unitDistance, inTop);
    if (error) goto returnError;               
    error = sPSActionDescriptor->PutUnitFloat(    rectangle, keyLeft, unitDistance, inLeft);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutUnitFloat(    rectangle, keyBottom, unitDistance, inBottom);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutUnitFloat(    rectangle, keyRight, unitDistance, inRight);
    if (error) goto returnError;
    error = sPSActionDescriptor->Make(&saveAsDescriptor);
    if (error) goto returnError;
    // "keyTarget" should always be the first key in, if there is one, which
    // there is in this case because we are doing the command:
    // "set selection to <rect>".
    error = sPSActionDescriptor->PutReference( saveAsDescriptor, keyTarget, reference );
    if (error) goto returnError;
    // Now we put the new, changed information, which is an object
    // of classRectangle, using the key "keyTo":
    sPSActionDescriptor->PutObject( saveAsDescriptor, keyTo, classRectangle, rectangle );
    if (error) goto returnError;
    error = sPSActionControl->Play(&result, eventSet, saveAsDescriptor, plugInDialogSilent);
    if (error) goto returnError;
    returnError:
        if (result != NULL) sPSActionDescriptor->Free(result);
        if (rectangle != NULL) sPSActionDescriptor->Free(rectangle);
        if (reference != NULL) sPSActionReference->Free(reference);
        if (saveAsDescriptor != NULL) sPSActionDescriptor->Free(saveAsDescriptor);
    return error;
Thanx.
Ale

If you break it down it might help to figure out where it's not working as expected.
Make sure your "Info" button is toggled until your rear LCD display shows the camera's mode, shutter speed, f-stop, ISO, etc. etc.  This wont impact the ability to change AF mode selection, but at least you can see that the camera is responding to your next button press.
When you press the rear AF selection button, it should be the button in the extreme top right corner of the back of the camera.   After pressing this button (but before pressing the M-Fn button) the rear-display should change.  The top of the rear display should read:  "AF point selection", the row below should show which AF mode is currently selected.  The row below that should display each of the available modes but at the extreme right you should see the "M-Fn" signifying that pressing that button will cause it to toggle to the next mode.
When you initially press the rear AF selection button, do you see the rear LCD display update  to show that you can either select new AF modes -or- alter the selected point within your current mode?  
Tim Campbell
5D II, 5D III, 60Da

Similar Messages

  • I'm using Mac with OS 10.9.4 and Photoshop CC. I am unable to access "Focus Area Selection". When I go to "Select" on menu its simply not there in the drop down menu. Any help?

    How do I access "Focus Area Selection" in Photoshop CC on a Mac? It's not showing in the "Select" drop-down menu.

    Select > Focus area is in Photoshop CC 2014, not Photoshop CC.  So you must download and install CC 2014 to have access to this new feature.

  • Could not use the move tool because no layers are selected.

    This problem started a few days ago. I like to hold down the "Shift" key when moving a layer (either text or image) to keep the horizontal spacing locked. It was never a problem but a dialog box is now popping up with the following note: Could not use the move tool because no layers are selected.
    There's no problem if I'm not holding the "Shift" key but I can't keep the layer from moving up or down. I could just use the arrow key but sometimes I need to move the layer quite a distance.
    Also, I'm noticing that if I don't have the cursor directly on the type/image layer, regardless of whether the "Shift" key is selected, a rectangle similar to when the "Rectangular Marquee Tool" is used appears and the layer I had selected is no longer selected.
    Any ideas as to why this might be happening? Thanks for the help.

    Sorry about that. I'm using Photoshop CS4. There are no layer masks and I'm working over a solid white background (although it's happening in all my files, some of which have multiple layers).
    I'm mainly designing DVD sleeves, posters, invites, etc. The layers contain images, live text, vector smart objects, etc. and the problem is happening with all layers, regardless of what it is (text or image).
    When I have the mouse directly over whatever it is I want to move and hold the shift key I get the "Could not use..." dialog box. When the mouse is NOT over the image/text, but I have the correct layer selected, I get the "Rectangular Marquee Tool" look, a "dashed" rectangular box wherever I've moved the mouse.
    Hope the info is helpful and thanks for responding...

  • Can Photoshop Convert Selected File-types From a Folder Full of Files?

    I have a folder with approximately 20,000 files in it. The files are a mix of eps, tif, jpg, and PSD files. I want to convert all the eps files to tifs. For now I've created a folder into which I move approximately 500 eps files at a time (that I manually select) and then run a batch action I created to convert them. This works fine but you can imagine how long this process will take (moving, converting, emptying the folder, moving 500 more files, and so on). I'd like to know if there's a way, either within an action or the batch command (or possibly a script or even some other way) that Photoshop would select only the eps files to convert. I could let it run overnight if it were possible.
    I'm using Photoshop CC on a Mac running 10.6.8 with 7GB RAM.
    Thanks,
    Lloyd

    I'm not sure about EPS files but the rest can be taken care of via File > Scripts > Image Processor. I'm pretty sure that EPS files can't be handled by Image Processor though.

  • Save What songs are Selected for ipod transfered to new computer help

    okay here is the thing i got a new computer and i need to save what songs are selected and i got so many songs that it would take forever to go through ALL my songs and select which ones go on my ipod cause i like it on auto-update please tell me if there is a way to keep what is selected like a file that says it and stuff it will be very appreciated

    Start using smart playlists, and tell iTunes to update using te smart playlists you create.
    http://docs.info.apple.com/article.html?path=iTunesWin/5.0/en/674.html
    Don't fiddle with the checkmarks.

  • How to filter results from 4 dynamic list menus depandant on how many of them are selected

    I have a search page with a form with 4 list menus and 1 submit that post the results to the results page. I can create a record set that either retrieves the correct data from my database if a selection is made from all four menus Or i can create the recordset if only 3 menus have a selection or the same for 2 menus and 1 menu. However i want the user to be able to make a selection from either 1, 2, 3 or all 4 of the menus and the exact data be retrieved. At present if i try to combine the recordset using AND and ORs the results are not specific enough, for example the 4 menus are Location, Type, Price & Style if a user selects from all 4 i only want to retrieve data that matches all 4 criteria, but at the same time if the user selects only 2 of the menus the i want it to retrieve data that matches specifically those 2 variables. I´m not actually sure if i should be creating a more advanced sql query of if its the php side of things that i need to look at. This is my first dynamic site so please be aware i´m still a learner where php and sql is concerned. Please can anyone help?  

    Hey there,
    Thanks for replying,
    I too am using Dreamweaver recordset, my local server is XAMPP ( apache php mysql), i´have pasted my sql recordset below to give an idea of what i´m trying to do, however this does not work as i´m trying to select the exact data based on 4 menus PRICE TYPE LOCATION and BEDS, and also want the search to work if the user only selects options from either 1, 2, 3 or 4 of the menus, with the code as it is if the user select only two options from 2 of the menus the results don´t just find (for example) all results for location AND price they find all results for the location varibale OR the price variable rather than a match for both, if you see what i mean?
    Any suggestions?  
    SELECT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number`
    FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid
    WHERE (location=varloc AND price = varprice AND type=vartype AND beds=varbed ) OR (price=varprice AND location=varloc AND type=vartype) OR  (price=varprice AND location=varloc AND beds=varbed) OR (price=varprice AND beds=varbed AND type=vartype) OR  ( location=varloc AND type=vartype AND beds=varbed) OR  (price=varprice AND location=varloc) OR (price=varprice AND type=vartype) OR (price=varprice AND beds=varbed) OR (type=vartype AND location=varloc) OR (type=vartype AND beds=beds) OR (location=varloc AND beds=varbed) OR (price = varprice OR beds=varbed OR type=vartype OR location=varloc)
    ORDER BY detailstable.trueprice ASC
    Look forward to receiving your thoughts,
    Linda
    Date: Wed, 21 Oct 2009 14:36:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: how to filter results from 4 dynamic list menus depandant on how many of them are selected
    Hiya,
    I'm just doing my first dynamic site too, and am at a similar level to yourself.
    Can you give us more info re the site. What software, eg Dreamweaver etc are you using, and is your server using PHP or ASP etc?
    For what I've used, I amended the SQL side of things in the recordset in Dreamweaver. That way, you can test the SQL as you're setting up the recordset.
    Let me know how you're going on anyway
    Cheers
    Andy
    >

  • Edited photos will save in edited photos will not  save in photoshop are being saved in my pictures on hard drive. wants me to import edited are being saved in my pictures on hard drive. wants me to import edited photos from my hard drive in to photoshop.

    edited photos will save in edited photos will not save in photoshop are being saved in my pictures on hard drive. wants me to import edited are being saved in my pictures on hard drive. wants me to import edited photos from my hard drive in to photoshop.

    Use iPhoto. What's the problem with iPhoto import? It's a two clicks job. Select your device and click import.

  • I have dell xps it runs at 3840 x 2167 and bridge lightroom and photoshop are unusable as the type is so small if win is re scaled to a low res the products still use full res and you canot see text can you help!

    I am about to buy the above products for home and a laptop I bought the high res laptop for editing photos and the photos look great on the display but I cannot use photo shop and lightroom
    has any body had this problem and is there a simple fix that I have missed
    taking the res down in the control panel reduces the res but does not effect the programme
    by the way the dell xps is great
    dave

    Thanks for the info I know that there were problems with the high res
    I am using the latest photoshop and bridge from the cloud but only using the trial copy at the
    moment  
    I will look closer and try to scale it to a suitable level
    thanks dave
    Original message----
    From : [email protected]
    Date : 06/02/2015 - 00:39 (GMTST)
    To : [email protected]
    Subject :  i have dell xps it runs at 3840 x 2167 and bridge lightroom and photoshop are unusable as the type is so small if win is re scaled to a low res the products still use full res and you canot see text can you help!
        i have dell xps it runs at 3840 x 2167 and bridge lightroom and photoshop are unusable as the type is so small if win is re scaled to a low res the products still use full res and you canot see text can you help!
        created by gener7 in Photoshop General Discussion - View the full discussion
    There is that pitfall in buying HiDpi laptops for Windows.
    Only Photoshop CC 2014 has the option to scale the UI 200% in order to make it usable on these hires screens.
    CC and earlier does not have this and Adobe would have to retrofit them. Not likely with older products.
    Gene
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7167666#7167666 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7167666#7167666
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Hi.. Cant get Focus Area Selection in select drop down

    Hi Guys
    I cant get Focus Area Selection tool despite cc showing Photoshop CC 2014 fully updated? ..... I would be most grateful for any help
    david

    What is your exact Photoshop version?
    Could you please post a screenshot to illustrate the issue?

  • HELP !  why doesn't color picker select specific color ? i make secondary layer and use the tool but no colors are selected and the gray out menu shows nothing !

    HELP !  why doesn't color picker select specific color ? i make secondary layer and use the tool but no colors are selected and the gray out menu shows nothing !
    what am i missing ??!!

    Please add you system info and SpeedGrade version and build number if you actually want help.

  • Photoshop Help | Selecting with the lasso tools

    This question was posted in response to the following article: http://helpx.adobe.com/photoshop/using/selecting-lasso-tools.html

    In Photoshop CS5 I was able to use the magnetic lasso, select a section from a photo and drag and drop the selection either in another Pshop or Illustrator doc. Now in Photoshop CS6 when I use the Magnetic Lasso and select an area of a picture, I get a bounding box with a white background that is coming with the selection.I am not getting just what I selected. Do I have something set up wrong, can someone please help with? Thank you....

  • How Many Objects Are Selected

    How can I tell how many objects are selected when I draw a selection marque around multiple objects?

    Open the Document Info Palette.
    Find its secret little flyout menu.
    Select from that menu "Objects".
    Let go.
    Then go to that same menu all over again and select "Selection Only".
    Scroll through the list and sum the quantities shown. Except be careful not to include the count of "All Text Objects" with the counts of "Point Type Objects", "Area Type Objects", and "Type On A Path Objects".
    Repeat those steps every time you start a new work session in AI, because AI's palettes can't remember the way you set them between launches.
    How could you have overlooked that intuitive and straightforward routine?
    JET

  • Seing how many objects are selected.

    Hi! I'm having a problem seing how many objects are selected when I navigate in Finder's windows. In Snow Leopard, there used to be a grey bar at the bottom telling you these infos, but this seems to be gone in Lion. Anyone knows how to get it back?
    Thank you!

    Open the Document Info Palette.
    Find its secret little flyout menu.
    Select from that menu "Objects".
    Let go.
    Then go to that same menu all over again and select "Selection Only".
    Scroll through the list and sum the quantities shown. Except be careful not to include the count of "All Text Objects" with the counts of "Point Type Objects", "Area Type Objects", and "Type On A Path Objects".
    Repeat those steps every time you start a new work session in AI, because AI's palettes can't remember the way you set them between launches.
    How could you have overlooked that intuitive and straightforward routine?
    JET

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • How do I transfer my checked songs from one computer to another - tried exporting library playlist etc but no luck! Please help! I have 26,000 songs - 17,000 are selected and I can't run down the list on my new computer and re-check 17,000 songs! Thanks!

    How do I transfer my checked songs from one computer to another - tried exporting library playlist etc but no luck! Please help! I have 26,000 songs - 17,000 are selected and I can't run down the list on my new computer and re-check 17,000 songs! Thanks!

    Make a smart playlist of your whole library but only checked songs - #4 on  http://support.apple.com/kb/ht1801
    Highlight all files in that playlist, then drag to the other drive.  This isn't preserving any playlists or whatever, just copying files from one drive to another.
    You might want to delete the smart playlist this once you are done because it will probably gobble up resources with that many files.

Maybe you are looking for

  • Extended Classic Scenario

    Referring to note 963000, we are about to install SRM 5.0 as AddOn to Ecc ERP 2005. In SRM we would like to implement the "Exteded Classic Scenario", meaning the procurement process will take place locally in EBP and a copy of data is replicated to t

  • Itunes on external drive

    I have screwed up my iTunes library. I have a ton of movies and music on a drive and I cannot figure out how to make it my iTunes destination. I have no problem accessing everything I have purchased - its all in the cloud. How can I fix this I will s

  • Error with field E_ENDEDATUM, function module PK_ENDDAT_AUS_START_PLUS_WORK

    Hi Well, i don´t know exactly were put this, but, here it is. The estandard function module PK_ENDDAT_AUS_START_PLUS_WORKD has an error on his definition: due to the field E_ENDEDATUM has no type, when you test it on SE37, gets a dump error message.

  • Sata issues with k8n-fsr

    Hi list! I have serious issues with my sata drive on my K8N Neo-FSR. The SATA drive is connected on the SATA3 controller, and an IDE DVD is connected as master on IDE channel 1. The DVD is detected by the BIOS and can be booted... BUT, the SATA hard

  • Everytime I click "Scene Setep" when using Element 3d my After Effects CS6 crashes, how do I fix this?

    @