Export the coordinates of line endpoint?

Hello

I'm in desperate need of a script to export the coordinates of lines, or paths, it does not really matter in a text document.

I have configured my sovereign so the value 0.0 is at the center of the image, because I need to 0.0 and - 0, -0 to work for what I have in mind, essentially using a document such as a great Cartesian grid, which you can then extract coordinated "edges" or endpoints of the lines.

A little history on why I need, for anyone curious. I found a way to build new worlds/cards for a game that generates the from field of the "borders", which are drawn on, on a 2d plane, but I need the coordinates to map these limits correctly. I could do it manually, where I would spend my mouse on each edge or end point of the line, but it would save a LOT of time.

I would be incredibly grateful if someone can help out me. I tried looking for scripts or other software, but have failed at all for what I really need.

The way I have my document setup is, 1 pixel per cm, 16384x16384cm. It's big enough, so most of the "Graphic" software do not work for her. The grid itself works well enough, I just need a decent way to export contact information.

Thanks in advance!

Edit:

Here, I made an example of a rectangle for you guys give the idea of what coordinates I would need:

http://i.imgur.com/VILOwrL.PNG

var dataFile = new File('~/desktop/exportData.txt');
var doc = app.activeDocument;
var dataStream = "";
// loop the paths in the document
for(var pathIndex =0; pathIndex 
         

Tags: Photoshop

Similar Questions

  • How to export the coordinates of a (rectangular) object in a layer in a PSD (angle)

    I have a large number of PSD files with a separate extra layer that displays a square dotted to indicate a specific area on the product. Using scripts, I can export the data in a txt file. However, this only works for the rectangular area that are horizontal. In some cases, the area of the rectangle is placed in an angle (lets say 45 degrees).

    Assuming that all areas are rectangular and some are in a corner, pourrais I export sort a txt file that displays the coordinates of the 4 corners of the object in a layer?

    Just figured it out. Just test it with a document opened with the layer of the selected shape.

    #target photoshop
    var doc = activeDocument
    var curLayer = doc.activeLayer
    var p = doc.pathItems.getByName (curLayer.name + ' Shape Path')
    var pItems = p.subPathItems[0].pathPoints
    var pPoints =''
    for(var i=0;i
    

  • TMS - export the settings of extended endpoints?

    Hello

    I'm trying to locate two of the following parameters in the TMS and find a way to export for TC series devices.  Unfortunately, I can't find this option in view of the system.

    XStatus systemunit productid
    camera model 1 XStatus

    I have nearly 100 end points I want to check this setting on because of the EOS/EOL, and it would be a lot of time if I had to manually go into the settings of each unit extended in navigation system.

    We run 14.6 TMS and I don't see this option in MSD 15.1 - so far, I think it is not a way to do it through TMS and it might be be done via the script.  Has anyone else found a way to do this?

    You can gather the product information for the codec using TMS, under systems > overview of the system.  In the right column, select the option 'Specific Type Description of the system' under general settings.

    The only way to gather information specific to camera are either view extended settings of each managed TMS endpoint, or connect you to each endpoint manually via its web interface or SSH.

  • My normal short clip in the timeline panel. When I hit the break, vertical lines appear. The lines are also exported. Why?

    My normal short clip in the timeline panel. When I hit the break, vertical lines appear. The lines are also exported. Why?

    Found an answer online. Here it is:

    I also want to mention that if you disable your GPU acceleration and use the software only mode the question should stop. It seems to affect only when the GPU acceleration is turned on.

    Go to file > project settings > General and only software switch.

  • I'm retouching of images taken on my iPhone 6 more with Photoshop CS6. I'm doing my color correction and add effects and all that. Before you export the image I review and be sure to what I has no more sharpness and the lines are smooth and it looks good

    I'm retouching of images taken on my iPhone 6 more with Photoshop CS6. I'm doing my color correction and add effects and all that. Before you export the image I review and be sure to what I has no more sharpness and the lines are smooth and it looks good overall. I export it to JPEG, max quality with the establishment of reference standards. I then open the image and it seems fine, as it did in photoshop. My problems begin to occur when I try to download on Twitter as my profile picture. I tried downloading from my office directly on the site via google chrome. When I download the image then begins to have jagged edges and overlooks the tablets. So I thought it was some performance settings, then I tweaked them and restarted a couple of times and still the same result. He would go on my desk but when uploaded to twitter as my profile picture is horrible. So I tried emailing the image of myself and the download through my phone. I opened the image on my iphone and it seemed fine as he did on my desktop but when I downloaded the image it makes then look blurry. I had this problem when downloading photos Twitter via my iphone, so it doesn't surprise me. I have read different forums saying: you must download it from the office, so I thought it would work like this. This could be a problem of twitter than compresses uploaded photos? Other people can do very much the same way, but it does not work for me. Please someone help me before I put my computer in an oven microwave.

    This could be a problem of twitter than compresses uploaded photos?

    Yes. The rest, we can answer. You wrote a lot, but very little discussion. Instead of accurate information you lose yourself in the vague descriptions. Screw color management to the wrong dimensions that trigger resizing server-side it could be any number of things here.

    Mylenium

  • The gray vertical lines appear on the bottom screen shots

    Hello

    Vertucal gray lines appear on the few photos that I took to be painted. They appear not in the Photos, but only when they are displayed as background pictures. It happens on every image but some a few, I can't work on any model! Any help would be appreciated!

    Photo for example is attached.

    See you soon

    You see the same problem, if you export the photo (file > export > export original) and then set the photo as the desktop to a folder in the Finder and not directly from your photo library?

    Preview shows also the photo with band objects?

    If you can see objects only when display as an image of the desktop, try the same from another user account - sign in the guest user account and set the image of the Office here.

    If the guest user account shows the same objects, restart your Mac in safe mode.  What is going on?

    See this link: Mac OS x: Safe Mode boot

  • Export the extent of DMM trigger

    Hello

    I would like to export the trigger Signal, which I receive on channel 0 of the scope to a DMM in a PXI system.

    So far, the scope is what I want it to do (Acquisition of 1 Record with a length of 550000 at a sampling frequency of 50 kHz with a 1 s pre-trigger).

    I would need to know the value of the DMM measurement in the scope of triggerevent. For this, I have inserted the signal.vi 'export' to the scope and set it to trigger reference and as terminal output that I chose 'the trigger PXI 0/RTSI0 line. The digital multimeter, I put the command Source for "TTL0", which should correspond to the line on which I'am export the Signal of the scope.

    But it does not work. The DMM sends the value as soon as I start the vi (she does not wait for the Triggerevent). If I choose 'none' as a signal to export in the scope, the DMM waits until he goes into a timeout. Do I have to configure something differently, or do I have to use the vi TCIk?

    Thanks for your contributions!

    Pietro


  • Export the schema to DXF

    Is it possible to export a DXF file Multisim schematics? Our standard procedure is to export the drawings to DXF so various borders of the company and the signature boxes can be added. We use OrCAD before today to make patterns and with that, we are able to export DXF.

    If this is are not possible with the current version of Multisim there plans to add this feature in the future?

    Thank you

    Robert

    Power of Multisim Pro edition

    10.1.1

    rmoss78,

    There is no native ability, but you can do this by using a few pieces of software that are relatively cheap.

    1. you will need a PDF print driver.   Some newer PCs today come with this standard.   If not, I recommended it in the past (www.pdf995.com).

    2. you will need a PDF to DXF conversion tool.   I recommend this one (www.aidecad.com) and have heard customers have a success with her.

    Note - There are probably other free or cheap - conversion tools if you have a good luck with others, please post it here...

    Now, all you have to do is print the diagram as PDF (nice to have it in PDF format anyway) and then use the PDF to DXF conversion tool to get it into a drawing in Autocad or similar Assembly tool for writing mechanics.

    The downside is now that the DXF resulting will be lines and not any organized 'blocks' that you can reuse in Autocad...

    Kind regards

    Pat Noonan

  • Export the graph to image: a few questions

    A few questions.

    (1) what does export average image "simplified"?

    (2) the invoke node export the Image export the image or simplified?

    (3) export the image to a .eps file, what I get is a picture of real vector graphic?

    Thank you

    (1) simplified - essentially data plots in graphical format, - without control shadows, white background, solid black grid lines. Try to copy it to the Clipboard, paste into paint, you'll see.

    (2) export Image - simplified (only for graphics). Get the picture - picture of the graph (any control)

    (3) generally labview does not know the vector graphic images, and maybe that this exception, since it is simplified to the rowset.

  • Reassign the group identity of endpoint massively in ISE

    I imported a large number of endpoint identities and unfortunately some of them have not been properly identified and I assigned the profile of bad endpoint. End points, I need to move on to another group that all share a common YES. Is it possible to move them at the same time? I can't find a way to do this.

    My apologies to Tom, I rushed through the steps and was referring to the export of endpoint option. You will need to check one by one. But if you have the first csv file you generated, I filter the mac addresses of those and enter them back with the group that you want to that they in.

    Thank you

    Tarik Admani
    * Please note the useful messages *.

  • How to delete Messages When you export the form to Excel results

    Update:

    I created a menu to call a procedure of database (with asset_id as parameter) that sends a request to retrieve the details of Bill of fa.  It works when I hardcode the asset_id but whenever I try to refer to the system asset_id, I get error messages about invalid tokens, keyword not found, not all variables, etc.

    Here are the formats I've tried:

    ${: item.invoices.asset_id.value}

    ${item.invoices.asset_id.value}

    {: item.invoices.asset_id.value}

    $: item.invoices.asset_id.value

    : item.invoices.asset_id.value

    Item.Invoices.asset_id. Value

    ${item.invoices.asset_id}

    : invoices.asset_id.value

    Should what format I use?

    Thank you!

    Greetings,

    We have a customization of forms on the FAXASSET form, based on the responsibility that disables updates when you navigate to Source lines.  The form generates messages "you can create folders here" without the customization.  Customization has solved the problem with the messages, but the messages to erupt again when users export the data to Excel.  How can we remove these messages when you export to Excel?

    Thank you!

    Scott

    Application version: 11.5.10 CU2

    Database: 10.2.04

    Server: AIX 5.3 on IBM P750

    Hello again,

    The variable being passed to the database procedure is digital so I don't think it was necessary, but it is!

    This format has made the Tower - add three ticks around the reference item.block.field.value.

    '''|| ${item.invoices_header.asset_id.value} | " '

  • Export the current page - configuration

    Hello

    I created a page of dashboard with 8 reports on this subject.

    Some of these reports may have more than 25 results, so I get a menu drop-down:

    dropdown.jpg

    Now when I want to export the entire dashboard via the option page: 'Export to Excel - export current Page', I get the dashboard with all my reports, but only the first 25 results page.

    When I lay my lines manually in the report so I have all the lines on my screen, I also get them in my Excel export.

    I was wondering if there is a way to change this export feature, so it will export all results, not just those shown on the screen? (like normal export function on a single report)

    Thanks for your help,

    Sander

    Go to Edit dashboard - > print options-> print all lines (by default, this will be the visible lines).

    You can find this option in the dashboard menu which is located just after the option remove from the dashboard page (X symbol in red).

    Thank you

    AJ

  • Procedure to export the result of the query to an excel or csv

    Hi all

    I have two identical paintings

    EMP_TEST OF THE EMP

    ID ID NAME

    1     SAM                      1        SAM

    2 JOHN 2 ROCK

    3 3 STEVE BRAND

    I need to combine the result under the query and intent to export data to excel using a procedure

    my query is

    Select 'EMP_ID', E1. EMP_ID, AND. EMP_ID from emp E1,

    emp_test AND WHERE E1. EMP_ID = AND. EMP_ID

    UNION

    Select "EMP_NAME", E1. EMP_NAME, AND. Emp E1 EMP_NAME,

    emp_test AND WHERE E1. EMP_ID = AND. EMP_ID

    but I get this error message

    ORA-01790: expression must have same type of corresponding data

    EMP_ID is a number and EMP_NAME is of type varchar.

    I need any idea or suggestion on sub queries.

    (1) I have to combine the result set in a single query.

    (2) I need to write the procedure that will export the result of the query to an excel or csv.

    Thank you.

    As PR has said, there are ways that have already been explained in this forum to write in external files. For your query condition, try this.

    SELECT CASE WHEN (REGEXP_LIKE (T1.ID,'[^ [: alpha:]] "")) THEN 'EMP_ID '.

    ELSE "EMP_NAME' END AS COL_NAME.

    T1.ID,

    T2.ID

    DE)

    SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,

    ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN

    DE)

    SELECT ID, NULL,

    NAME,

    RN ID

    FROM EMP

    UNION ALL

    SELECT ID,

    NAME,

    RN NULL

    FROM EMP)) T1.

    (SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,)

    ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN

    DE)

    SELECT ID, NULL,

    NAME,

    RN ID

    OF EMP_TEST

    UNION ALL

    SELECT ID,

    NAME,

    RN NULL

    OF EMP_TEST)) T2

    WHERE T1. RN = T2. RN;

    OUTPUT:

    COLUMN-NAME ID ID
    --------  ---------------
    1 1 EMP_ID
    2 2 EMP_ID
    3 3 EMP_ID
    SAM EMP_NAME MARK
    EMP_NAME JOHN JOHN
    EMP_NAME STEVE DARREN

    6 selected lines.

  • Script to export the virtual disk information in a specific format

    Hi all

    First too all the Scripting Guys who I borrowed the code here, thank you!

    Now, I was able to get all the information I want vcenter but I have problems with two of the scripts I wrote.  It is with regard to obtaining information on the virtual disks associated with all virtual machines in the environment.

    I was able to export the data, but I get a line by VM that does not work for the way in which we want to use the data.

    What I am looking for is a csv export with one line per virtual machine that looks like:

    VM number 1, hard disk number 1 name number 1 datastore, path of vmdk number 1 hd, hd number 1 capactity, number 1 hd, hard drive controller number 2 name,... up to 7

    name of number 2 VM...

    Thank you!

    Alec

    OK, I see what happened.

    The 2nd block is to create empty properties in the object.

    The value should be $null like this

    $report = @()foreach($vm in Get-VM){  $row = New-Object PSObject -Property @{Name = $vm.Name}  $i = 1  Get-HardDisk -VM $vm | %{    $row | Add-Member -Name "Disk #$($i) Name" -Value $_.Name -MemberType NoteProperty    $row | Add-Member -Name "Disk #$($i)" -Value $_.FileName.Split("/")[1] -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)path" -Value $_.FileName -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Capacity(MB)" -Value ($_.CapacityGB*1024) -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Controller" -Value ($_ | Get-ScsiController).Name -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Datastore" -Value $_.FileName.Split(']')[0].TrimStart('[') -MemberType NoteProperty    $i++  }  while($i -le 8){    $row | Add-Member -Name "Disk #$($i) Name" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk #$($i)" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)path" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Capacity(MB)" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Controller" -Value $null -MemberType NoteProperty    $row | Add-Member -Name "Disk$($i)Datastore" -Value $null -MemberType NoteProperty    $i++  }  $report += $row}
    
    $report  | Export-Csv -path virtual_disks2.csv -notype
    
  • How to export the virtual machines in the top 10 of the questions?

    Hi all

    I'm looking for a way to script and export the TOP 10 virtual machines that had problems (cpu, memory, disks)

    and if there is a way to export each number to another worksheet or a different line.

    Thanks in advance!

    A slightly different approach, we use the group object to create an object for each virtual computer with the highest CPU usage.

    Of those that we have, then take the 10 with the highest value.

    $cpuWatermak = 90 $vms = Get-VM $metric = "cpu.usage.average" $start = (Get-Date).AddDays(-7)
    
    $stats = Get-Stat -Entity $vms -Stat $metric -Start $start -ErrorAction SilentlyContinue $stats | where {$_.Instance -eq "" -and $_.Value -ge $cpuWatermark} |Select @{N="VM";E={$_.Entity.Name}},Timestamp,Value |Group-Object VM | %{
      $_.Group | Sort-Object -Property Value -Descending | Select -First 1} |
    Sort-Object -Property Value -Descending |Select -First 10
    

    Note that we use only records where the Instance is empty, these are averages aggregated over all hearts.

Maybe you are looking for