Get Current Selected RoundRect Corner Radius

Alright, been working on this stuff for hourssss now, so I felt that after this much searching and messing about it would be worth it to ask this question.
So I have a rounded rectangle vector mask path here:
http://cl.ly/1M2E0C1X0V1y2w430x0q
Is there any way at all to get the corner radius of that rounded rectangle which is (40) and then assign that to a variable? If there isn't an easy way to do it, the next best guess would be to take the first pathitem distance from the top and subtract the 8th pathitem distance from top of canvas from that essentially getting the border radius just from the change in distance between those two points from the top of the canvas. I have an example shown below:
http://cl.ly/2L280K0O0s0J3I3A3h2O
This code gets the x,y values of all points in the document, can I limit it to just the points on that layer vector mask? And then subtract one from the other and assign that to a variable?
#target photoshop
var doc = app.activeDocument;
var ppList = doc.pathItems[0].subPathItems[0].pathPoints;
for ( var i =0; i < ppList.length; i++ )
      $.write('Path Point '+i)
      $.writeln(' X:'+ppList[i].anchor[0]+' Y:'+ppList[i].anchor[1])

Then it should not be hard to identify the PathPoints that for the straight parts and then evaluate the coordinates.
What’s giving you problems?

Similar Messages

  • Get Current Selected Cell Value in an af:table

    Using JDeveloper 11.1.1.3.0
    I currently have a requirement where i need to call a server method and pass the value of the current selected Cell value in my af:table.
    The reason why i can't just make use of the currentSelectedRow is because i have a set of Columns (NumericValue1,NumericValue12,...NumericValue1n) and my server method can't really tell which cell i picked.
    So far, what i did is that i utilized F. Nimphius's article about using contextMenu and passing a clientAttribute.
    Re: How to pass parameter to inline popup when mouse over
    I'm hoping to do the same thing but without raising a popup on right click. So basically, i'm hoping to select an outputText in the table and this value will be stored in a pageFlowScopeBean.
    Has anybody encountered something similar?
    Thanks.

    Hi Barbara,
    You're aproach sounds intersting.
    So you mean to say, i'll create a component which has a bindings to my pageDefinition which needs to have it's clientComponent attribute set to true i believe so that my javascript can find this component.
    Then, i'll write a javascript that handles the focus event which then stores the clientAttribute value and stores that in the hidden component mentioned earlier. I'm guessing that once i set the newValue to the hidden component, it should be posted to the pageDef bindings upon hitting server side calls.
    I'll try this out and give an update on it.

  • Oracle Forms: getting currently selected item in List

    I've noticed that the method isItemSelected in the oracle.oats.scripting.modules.formsFT.common.api.elements.List class doesn't appear to work. In the drop down lists that I've tested, it always returns true for any item that is in the list (ie the same as isItemInList returns).
    Is there any way to figure out what item is selected in a drop down list in Oracle Forms?

    Hi,
    I am also trying the same for a Select field in a Web application. .selectOptionByText works for input but to get a value from a select box. .getSelectedValue() is not working and also .getSelectedText() is also not working. Not able to get a value at runtime from a select field. Also how to retrive all the options present in a select field in a web application.
    Alex can you help on this.
    Thanks

  • Feature Request: Ability to modify corner radius on boxes after creation

    Hi. As an interface designer I often use the rounded box tool to create buttons.
    I noticed that you can only select the corner radius at the time the box is created and not modify it thereafter--your only option is to delete the shape and create a new one with the new radius values.
    I've tried the selection tools but "corner" radius as an option is nowhere to be seen.
    Would be nice to change that as easily as size of fonts to quickly see how different styles would look on a page.
    Cheers.

    Hi. As an interface designer I often use the rounded box tool to create buttons.
    I noticed that you can only select the corner radius at the time the box is created and not modify it thereafter--your only option is to delete the shape and create a new one with the new radius values.
    I've tried the selection tools but "corner" radius as an option is nowhere to be seen.
    Would be nice to change that as easily as size of fonts to quickly see how different styles would look on a page.
    Cheers.

  • How to get the specific name of the workset which is currently selected by the user in sap portal 7.0

    Dear Expert,
    I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
    I am using portal 7.0.
    Thanks & Regards,
    Patralekha

    Hi Expert,
    I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
    But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
    But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
    INavigationService is available there.
    But didn't get any proper discussion on this interface for the same requirement.
    Can you please help me.
    Thanks & Regards,
    Patralekha

  • How to get the current selected value of a combo box or a option button?

    Hello All,
    I want to catch the current selected value of a combo box and also of a option button and want save it into different variables in my code. These option button and combo box are in a SAP business one form which I have created through VB dot.net coding.
    But I don't know how to do that, can any one send any example code for this.
    Regards,
    Sudeshna.

    Hi Sudesha,
    If you want to get the selected values you can do it as follows: The Combo Box value you can get from the combo box. If you want to get it on the change event, you must make sure that you check when BeforeAction = False. If you want to get an Option Button value you should check the value in the data source attached to the option button.
            Dim oForm As SAPbouiCOM.Form
            Dim oCombo As SAPbouiCOM.ComboBox
            Dim oData As SAPbouiCOM.UserDataSource
            oForm = oApplication.Forms.Item("MyForm")
            oCombo = oForm.Items.Item("myComboUID")
            oApplication.MessageBox(oCombo.Selected.Value)
            oData = oForm.DataSources.UserDataSources.Item("MyDataSourceName")
            oApplication.MessageBox(oData.ValueEx)
    Hope it helps,
    Adele

  • JTree: How to get the currently selected node

    How do I get the currently selected node in JTree?
    getLastSelectedPathComponent() this method always return the last selected node and not the current one.
    Thanks in advance
    Sachin

    Use
    TreePath selectedPath = tree.getSelectionPath()If your tree allows multiple selections, use
    TreePath [] selectedPaths = tree.getSelectionPaths() this will return an array of all selected tree paths.
    Once you get the tree path, call the treePath.getLastPathComponent(). this should tell you the currently selected node.
    Hope this helps
    Sai Pullabhotla

  • Burning a disc but getting a too large for current selected disc media mess

    Trying to burn a project on to DVD (4.7g disc) but I keep getting a message that says "Compiled project is 2835.4 MB too large for currently selected disc media. Does anyone have any ideas on this? Isn't 2835.4 MB around 2.8G. I'm confused! Should'nt this fit. Any help would be appreciated

    Hi
    To fit that lenght in a SL DVD you must use Compressor to encode your video and audio before importing in DVDSP. You can take the standard DVD High Quality 120 min preset and use the MPEG2 and AC3 (Dolby 2) settings, then use those files in DVDSP.
    If you are currently using DVDSP as encoder, you'll get AIFF uncompressed audio what takes a lot of disc space and bitrate.
    Hope that helps !
      Alberto

  • How to get  a Current Navigation model  Current Selection (node) ID

    Hi,
    we are using default navigation model for page navigation in our application.
    I am trying to get Id of Default Navigation model node, I am able to get the Title using following code which available in globe template.
    Code – pageTemaplate_globe.jspx :
    <af:forEach var="node" varStatus="vs"
    items="#{navigationContext.defaultNavigationModel.listModel['startNode=/, includeStartNode=false']}">
    <af:subform id="pt_sfm1">
    <div class="bea-portal-book-primary-menu-single-item">
    <af:switcher id="pt_sw1"
    facetName="#{(empty node.attributes['Target']) || (node.attributes['Target'] == '_popup') ? 'command' : 'golink'}">
    <f:facet name="command">
    <af:commandLink id="pt_cl1" text="#{node.title}"
    action="#{MyAccBean.menuItemListAction}"
    disabled="#{not node.navigable}"
    actionListener="#{navigationContext.processAction}"
    clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}">
    <!-- pass node to processAction for setting current selection and navigation -->
    <f:attribute name="node" value="#{node}"/>
    <af:setActionListener from="#{node.title}"
    to="#{pageFlowScope.menunodetitle}"/>
    I am using +<af:setActionListener/>+ to set Title to variable and using in that in code.
    Is there a way that i can get ID in the same way as title?
    I see following EL from documentation but there is no ID attributes available.
    EL: #{navigationContext.defaultNavigationModel.currentSelection.attributes['Description']}
    EL: #{navigationContext.defaultNavigationModel.currentSelection.title}
    Please help me…
    Thank you,
    SP

    Hi.
    Doesn't exist direct access to node Id but you can use this EL Expression to get it:
    #{node.prettyUrlPath[node.depth]}Regards.

  • Get current page or page of selected item

    Hello,
    I' d like get the current page in Indesign or (if this is not possible) the page of a selected object.
    How could I implement this?
    var page = app.selection[0].page;
    does not work.
    Thanks and kind regards,
    mannyk

    Another way getting that done is based upon what is your current
    selection.
                    var myPg=getPage(app.selection[0]);
                    alert (myPg.name);
    function getPage(theObj)
    if (theObj.constructor.name == "Page") return theObj;
    if (theObj.constructor.name == "Character" || theObj.constructor.name ==
    "Paragraph")
    return getPage(theObj.parentTextFrames[0]);
    if (theObj.constructor.name == "Application")
    // Frame is on an unexpected place...
    alert ("Can't able to find the page");
    exit(0);
    return getPage(theObj.parent);

  • How do i get current active or selected page item's  reference

    Hi all,
    How do i get current active or selected page item's  reference .
    Please help me

    You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
    In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • How to get to know the current selected service?

    Can anyone tell me how to get the current selected service in MHP? I tried to find one but no result. Can javax.tv.media.MediaSelectControl.getCurrentSelection() gives me the answer?

    servicecontext.getService()

  • Get the currently selected entry point

    Hello,
    I developed an content iview, where i have to find out which entry point is currently selected in the navigation.
    Anyone an idea how to do this?
    Thanks and Regards
    Robert

    Hi Robert,
    Using the breadcrumb you can get the navigation of the current selection...
    Try out this blog
    EFP: Working with the New Taglibs - Part 2
    -Aarthi

  • Change corner radius of rounded rectangles after drawing them

    It is great that vector shapes feel even "smarter" in CS6, allowing you to change the stroke width and color after drawing them.
    Designing user interfaces, I use a lot of rounded rectangles, and I often have to change the corner radius of a rounded rectangle that I've drawn by a pixel or two. Rather than having to trash the original shape and making a new one, it would be great if you could select the existing rounded rectangle and change the corner radius. I realize that there is a dilema: the user is technically free to move anchor points around and change the object from a rounded rectangle; but Photoshop could basically keep track of whether or not the shape's anchor points have been modified, and whether or not it should still be classified as a rounded rectangle.
    Alternatively, this might be an even better solution: rather than having the rounded rectangle be its own shape tool, as it currently is, just give users the rectangle tool, and let them adjust the corner radius of a rectangle at any time in the tool's options bar. The rounded edges of the rectangle would technically not be created with anchor points, it would be more like a smart effect that Photoshop is performing by rounding the edges. Another benefit of this would be that you could free tranform the rectangle, and the rounded corners would not get screwed up as they currently do, because Photoshop knows that this is just a rectangle shape that you always want to have rounded corners on.

    Oh thanks for the heads up, I had not seen the Photoshop GetSatisfaction page before. Here is a topic with the idea: http://feedback.photoshop.com/photoshop_family/topics/it_would_be_good_if_the_roundrect_ve ctor_tool_corner_radius_was_editable_during_and_after_drawing
    Vote it up people.

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

Maybe you are looking for

  • Accidentally moved all photos out of separate folders into single folder!

    So somehow I managed to move all of my photo files from my work out of their respective, nicely organized folders into one single folder. I really can't figure out how. All 15,588 of them... now unorganized into a single folder. "Undo" didn't work an

  • Lumix DMC - FZ 200 raw support lacking. Is there a work around to access jpeg images

    I'm Using Aperture 2.1.4. I Shot RAW + JPEG on a recent trip using my new Lumix DMC - FZ 200 on a 64 gb sdxc card which seems supported by OSX 10.6.8 - import seemed to be working ok. Aperture shows only thumbnail with "Unsupported image format". Fil

  • External Speakers = Only one works

    Hello there I'm having an issue with my speakers - I have some Altec Lansing speakers connected to my Dell Latitude E6400, and if I want to play audio, then there's only the right speaker working. 1. They run both if used with - for example - an MP3

  • Reg: LOV FormPersonalization

    Hi all, I trying to change Query in LOV using form personalization. Steps i followed was: 1. I identified the Form name and open that in form builder 10g and i found the current query for LOV in Record Group 2. Now i am doing Fom Personalization in o

  • Best way to declare and use internal table

    Hi all, As per my knoledge there are various techeniques (Methods) to declare and use the internal tables. Please Suggest me the Best way to declaring and using internal table ( WITH EXAMPLE ). Please Give the reason as well how the particular method