Get the area of interest of a layer

Hi all,
Does a method exist to get the area of interest of a layer ?
In UI, it's possible by CMD+Clicking on a layer.
Regards
Thanks.
Pierre RAFFA.

Ctrl|CMD+ clicking on a layer in the Layers Palette loads|select the layers transparency as far as I know has nothing to do with area of intrest.  I think that has more to do with content and the eye of the observer.  If all else fails The Scriptlistener may record something for Ctrl|CMD+ clicking on a layer in the Layers Palette.
// =======================================================
var idsetd = charIDToTypeID( "setd" );
    var desc21 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref10 = new ActionReference();
        var idChnl = charIDToTypeID( "Chnl" );
        var idfsel = charIDToTypeID( "fsel" );
        ref10.putProperty( idChnl, idfsel );
    desc21.putReference( idnull, ref10 );
    var idT = charIDToTypeID( "T   " );
        var ref11 = new ActionReference();
        var idChnl = charIDToTypeID( "Chnl" );
        var idChnl = charIDToTypeID( "Chnl" );
        var idTrsp = charIDToTypeID( "Trsp" );
        ref11.putEnumerated( idChnl, idChnl, idTrsp );
    desc21.putReference( idT, ref11 );
executeAction( idsetd, desc21, DialogModes.NO );

Similar Messages

  • In RenderContext is the "area of interest" in user or device coordinates?

    In the RenderContext class, is the "area of interest" shape supposed to be in user coordinates or device coordinates? Thanks.

    The first step would be to ensure that you can change the AOI in a regular test VI, then see if we can get it up and running in your own program. With the camera file that comes with the IMAQ drivers I didn't see any applicable attributes to change the area of interest--are you looking at altering the Acquisition Window? If it is the actual AOI, are you using a different camera file than the one that ships with our drivers? If you don't have a different camera file, then it will probably be easiest to look at it using your example VI that you got from Basler. I'm guessing that when we change the AOI, we aren't actually changing the buffer size of the image that is allocated. Does it acquire any images, or error out immediately? What I'd like to try, is to put the serial commands of this VI into a Grab or a Snap example and see if we run into the same issues. The examples are found under Help>Find Examples> Hardware Input and Output>IMAQ>High-Level.
    Marti C
    Applications Engineer
    National Instruments
    NI Medical

  • How to get the area of a polygon

    Dears,
    I want to use distance tool to get the area of a drawn polygon, how to do so using mapviewer javascript API version 2 and/or version 1.
    Does the mapviewer javascript API version 2 works with JSP/ASP or it is just for HTML5?
    Many thanks in advance

    I suggest to take a look at examples F01 and F06 ( Oracle Maps Demo ).
    The answer to your second question is yes. As oracle maps api is a client side (javascript) api you can use it with any server side programming languages like ASP or JSP.

  • How can i buil labview program to get the area and curvatures at top with video analyis?

    labview program building...
    Solved!
    Go to Solution.

    Please stick to your original thread:  http://forums.ni.com/t5/LabVIEW/how-can-i-get-the-area-of-a-ball-with-video-analyis/td-p/1630034
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Any way to get the area of a mask to use in an expression?

    I'd like to find the area of a mask, or even just the bounding width or height to use as a variable in an expression.
    For example I'd like to have the brightness of a solid based on the area( or a dimension)  of a mask that resides in it.
    I can't see that you can access these things, but I know that some scripts can, for example, access and change the individual nodes of a mask.
    So there must be more to it than I have found, anyone know where to find info on modifying masks with expressions? perhaps that will lead me in the right direction.

    Yes!  It`s very interesting for me too. I know what by expression i can`t change the mask form in current version AE, but may be in feature?
    Jockomofeenahnay you can do the search in google with:
    After Effects Mask script words. It`s all what we have at this time

  • How to get the area of a selected rectangle?

    Hi:
    I want to use the selected area in a automation plugin. In my case, the area is rectangle. i can't get the top,left,bottom and right position.
    Is there anyone can help me?

    I'm petty you sure can extract the details you want using a script. I think the method is called Selection Bounds, and it return an array of the unitValue of the rectangle.
    If you look at the scriptlistener code for creating a rectangle, it does record the data you want. So you should be able to extract it using Javascript, Apple Script or VB
    This is what the scriptlistener code looks like,
    // =======================================================
    var id5 = charIDToTypeID( "setd" );
    var desc3 = new ActionDescriptor();
    var id6 = charIDToTypeID( "null" );
    var ref1 = new ActionReference();
    var id7 = charIDToTypeID( "Chnl" );
    var id8 = charIDToTypeID( "fsel" );
    ref1.putProperty( id7, id8 );
    desc3.putReference( id6, ref1 );
    var id9 = charIDToTypeID( "T " );
    var desc4 = new ActionDescriptor();
    var id10 = charIDToTypeID( "Top " );
    var id11 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id10, id11, 210.000000 );
    var id12 = charIDToTypeID( "Left" );
    var id13 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id12, id13, 276.000000 );
    var id14 = charIDToTypeID( "Btom" );
    var id15 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id14, id15, 455.000000 );
    var id16 = charIDToTypeID( "Rght" );
    var id17 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id16, id17, 613.000000 );
    var id18 = charIDToTypeID( "Rctn" );
    desc3.putObject( id9, id18, desc4 );
    executeAction( id5, desc3, DialogModes.NO );

  • ADF 11g + getting the user details in ADF BC layer

    Hello,
    I am using Jdeveloper build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.553
    How to get the user name and roles in ADF BC layer? . I need to get the username in entity layer,view layer and am layer.
    Is there way to write common method to get the username from session data??
    Any advice??
    Thanks
    RB

    Hi,
    You can get User name using EL ---adf.context.securityContext.userName
    and also using---getUserPrincipalName()
    Thanks,
    Vijay

  • Getting the area and circumference of XY graph

    Hello
    Please I need help as soon as possible with This Labview Code.
    This code include drawing manually a circle on the XY graph to calculate the area and the circumference of it !
    But  I need an improve of this code to make it more beneficial, I want to find a way so the circle will be drawn automatically when I run the program and choose the the txt file for X & Y in a way to cover like at least 95% of the graph!! 
    Thank YOU 
    Attachments:
    read data (1).vi ‏348 KB

    Sure, here's the VI, though you can also drag and drop the .png into the block diagram.
    BR:
    Andrew
    Andrew Valko
    National Instruments Hungary
    Attachments:
    Circle Draw.vi ‏22 KB

  • I cannot get the info bar (not the dock) on the top of my screen to permanently appear without my having to put the cursor on top of screen. Then it appears. Don't even know what that is called...above the open window.

    How do I get the area above the open window to display information (as in closing that specific window, "Safari  File Edit View History, etc.) without having to attempt to put the cursor on it to give me that info? I am not referring to the dock which is at the bottom of my screen. Although,It too, is not  visible.
    They were both visible before today.
    Sorry, but I have no clue as to what this topic should be.

    When you do Safari to it's maximum size on the screen (with the two little arrows in the Safari top menu bar on the right), Safari will take the whole screen including the top Apple menubar. In that menubar is the same set of little arrows to bring Safari back to it's previous size (which you can set by moving it's borders), you bring the Apple menubar in sight by moving the mousepointer to the top of the screen, when you do not want to loose that apple menubar, you can set Safari as bog as you can by moving its borders but just until below the apple menubar. Don't touch the little arrows in Safari menubar.

  • Why can't I even down load firefox when I get the adobe crash warning?

    Why can't I download Mozilla firefox AT ALL. I had to uninstall it because I installed IncrediMail and it changed ALL my browsers to "My Start". I did not want or like this, so I uninstalled it, but it permanently changed my Mozilla and Google Chrome to My Start. Now I'm trying to put Mozilla back on, but my laptop won't let me. I just get the are you sure you want to install? This could do damage etc . I said yes once, and then it said the file is corrupt. The Adobe has crashed message appears also at that time. How can I load Firefox back on? Frustrating!!
    == This happened ==
    Every time Firefox opened
    == I tried to install Firefox ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    Hi shrinkrap305,
    Try going to http://www.mozilla.org/en-US/firefox/new/
    # Download the full installer to your desktop.
    # Close Firefox. Be sure that it isn't still running in the background.
    # Run the installer and re-open Firefox.
    Hopefully this helps!

  • I'm trying to install a layer style (.asl) in photoshop cc 2014 and I get the error message 'Could not place the document 'filename.asl' because no parser or file format can open the file.' Any suggestions?

    I get the same error when trying the same thing with the default styles, so it's not the file.

    So, if you click on one on of the layer style sets already on the list, such as Text Effects 2, you get the same message?
    Which version of mac os x are you using?
    Did you upgrade your mac os with photoshop cc 2014 already installed?
    Do you have the lastest version of photoshop cc 2014, which should be 2014.2.1
    (listed at the top of Help>System Info from within photoshop)
    Do you see the same layer styles as shown above on your list?
    Have you moved/copied any plugins from an earlier version of photoshop to the photoshop cc 2014 plugins folder?
    The layer styles shown on the list above are the styles that ship with cc 2014 and should be in
    /Applications/Adobe Photoshop CC 2014/Presets/Styles
    (the mac applications folder where all the other mac applications are installed)
    You might try resetting the preferences, but you might need to uninstall photoshop cc 2014 and then reinstall.
    (don't drag the cc 2014 to the trash, but use the Uninstall Adobe Photoshop CC 2014 in the photoshop cc 2014 application folder)
    To reset the preferences
    Press and hold down the Shift+Command+Option keys while starting photoshop cc 2014
    Keep holding the keys down until you get a dialog asking if you want to delete the adobe photoshop settings file
    Press Yes

  • Trying to sync my iPod with iTunes and I am getting this message:"This computer is no longer authorized to play purchased items that are on the ipod"...  I have deauthorized and reauthorized the account and still getting the same error.

    Trying to sync my iPod with iTunes and I am getting this message:"This computer is no longer authorized to play purchased items that are on the ipod"...  I have deauthorized and reauthorized the account and still getting the same error.  I have read and followed the instructions in the support article TS1389.  I do NOT have an SC info folder at /Users/Shared/ directory to delete.
    I just installed Lion yesterday, and am running iTunes 10.4.   First attempt to sync since upgrade.
    Thanks
    Dan

    Yup,
    Me too...this is stupid, stupid, stupid. Just purchased my 200 (ish) mac and now I am told that my new Mac Book pro is not "authorized".
    Which if my 200 macs are authorized. Can someone please tell me???
    I "deauthorized" my old MBP and still told I cannot use my iPhone with iTunes.
    Interesting that my old $2500 MBP, my new $3000 MBP and my $500 iPhone all cannot work cuz of some pinhead's decision to use this assorization process.
    Yes I am very, very, very mad.

  • How to get the full path or name of the Layer to which Filter is applied?

    Hi All,
              I have created a layer using some background image as source. How to get the name or ful path of the background image?
    I checked the documentation and found GetPathNameProc(SPPlatformFileSpecification*) function, but I couldn't get the parameter SPPlatformFileSpecification*.
    Is there any other way to get the file path of background layer in my custom filter?
    Thanks,
    Dheeraj

    If this is a client side application then I'd say look into drag-n-drop tutorials.
    i.e. drag file to your application, action listener fires, create File object giving you full name and path of users action.
    If this is a web application then look into the "multipart/form-data" content type specifications on how to upload files.
    i.e. user specifies file from <input type='file' ... /> type, submits, servlet receives data and recreates file locally on application server side.
    If you are thinking that all you need to send a file to a program is the full path and name in a textbox its a little bit more complicated then that.
    Good luck, hope that helps!

  • Are You All Able to get the Output In EXCEL Format

    Hi All,
    I have one question. Are You All Able to get the Output In EXCEL Format?? I am working on Oracle Apllication 11.5.10.2 and my XML builder is 5.0.1. Problem which i m facing is this...... Whenever i am submitting a concurrent program with format type different from PDF i could not able to view the ouput in desired format. When i am pressing view output it gives me a file in XML and when i save that file with extention 'xls' or 'rtf' then i could able to see the saved file in desired format.
    Can anyone tell me where is the problem??? Is it a bug?
    I am using microsoft world 2000 sp-3.
    Please give your valuable comments. May be your comments can solve my problem..
    Thanks
    Ravi

    Hi I got Same issue
    When I change Format to EXCEL from
    Submit request>> Option>> Format = EXCEL
    In window I am getting something HTML code and
    when I try to copy it to Browser from Tools>> Copy File in to Browser I am getting following message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://our url.com:8000/OA_CGI...
    <p class="c0"><a name="Text4" id="Text4"><a name="Text1_1" id="Text1_1"><span class="c1">Dept No <...
    But I can see the output when Format is PDF
    Pls suggest solution ,I am using EBS 11.5.10.2.
    Thanks
    Rahul
    Message was edited by: Rahul
    user576181

  • My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any

    My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any advice is helpful. This has never happened in 6 years

    answered in your other thread LR 4 suddenly no longer recognizes files.

Maybe you are looking for

  • Can't get music onto Ipod

    I have a previous itunes with music on it and now have a new 8GB nano and want to sync the music onto it but all it does is ask me to register my ipod (which I did) and then asks me to read the whole software license, check the box, save it, and then

  • Issues accessing keystore of SAP Portal

    we need to configure an SSO from SAP portal and a third party website by passing encrypted userid as url parameters. To configure the SSO I have received the public key of the third party and able to access it from server location. Now I have to acce

  • "Get Specified Finder Items"????

    When I screen capture and often download files, the "Get Specified Finder Items" prompt pops up on my screen.  I have to cancel it 2X and it never has anything to do with what I am working on. Can anyone please help me figure out what it is asking fo

  • Iphoto won't recognize iphone?

    so i plug in my iphone 4s to iphoto so i can upload pictures, but instead of recognizing it as "my iphone" (that is the name of it) it comes up at "apple iphone" none of the photos show up there are just a bunch of squares with dotted lines around th

  • Unable to access PCD's role properties from Java Web Dynpro  (Access Denied

    Using the IPcdContext to access the portal roles does not produce the required list of roles due to the following error Access denied (Object) ..... This occurs once I try to use the lookup() method I have tried security zones, adding sharingReferenc