Parallel tasks within the Vision of script Wizard

Hello

I am new to the wizard of vision of NOR, I think I can miss a clear interface tool, but I can does not seem to find anything.

I need to have parallel tasks in a script to identify a certain area. Basically I want to reuse a result of intermediate treatment several times before taking the lines together for the answer.

That is to say to have task 3 then Task4, 5 in the other branch.

Task 1-> task 2-> task-> task-> response 6 3

Task 1-> task 2-> Task 4-> task-> task-> response 6 5

Hey Mike,

You might go on your application is to use the image in the buffer stage. The basic idea of this method would be as follows:

1.) your image

(2.) your first steps

(3.) your image to a buffer store

4.) take next steps on the image

5.) performs the logical comparison between your current image and the image contained in the buffer.

This method is not necessarily parallel treatment, but would be a way to accomplish what it seems you are trying to do in NI Vision Assistant. See the attached example for some clarification on the method, I proposed.

Hope this helps,

-Ben

(The sample script is in vision) 3.6 So also attached is a screenshot of the steps. Is also attached the image of the sample used for the script)

Tags: NI Hardware

Similar Questions

  • Monitoring the progress of the task in the pipeline

    Hello

    I was wondering if there is a way to track progress (% completed) of each task in the pipeline for a bunch of objects and run the simultaneous command in the pipeline. Don't think not write-progress can be used for this purpose.


    I have a script that migrate in series to a virtual machines list nightly in a data store different (storage vMotion). Each virtual machine is pretty huge (size provisioned about 1 TB) and takes about 3 hours to migrate each. What I want for each virtual machine in the pipeline that is being migrated, is to follow how migration is complete (for each virtual machine, not for virtual machines in the table in sound together) if I can send it to a notification by email of the progress for each computer virtual every hours that elapsed.


    1. place each vm in the table to foreach and run move-vm in agreement with a bunch of other commands (in pseudo-code below)

    2. when the instance of stopwatch hits 1 hour (which means that storage vmotion for VM in the pipeline happened for one hour), call a function of e-mail notification passing the percent complete of VM current migrating

    $vmarray | foreach {#need all orders here to execute simultaneously}

    Move-vm $_ - datastore (get-targetdatastore)

    $ElapsedTime = [stopwatch]: StartNew()

    $percentcompleted = get-courses (imaginary function) #this's what I what I need help

    $triggerdue = $elapsedtime.minutes - eq 60

    While ($true) {}

    If ($triggerdue) {$elapsedtime.reset; send-notifmail}

    $percentcompleted}

    }

    }


    In looking at [runspacefactory]: CreateRunspacePool to run these commands in the competition, but is a ' native PS / more powershell-ish ' to do this?

    Thank you very much.

    There are a couple of other possibilities.

    You can use Start-Job and parallel tasks in the workflow.

    You could launch the Move-VM with the RunAsync switch, which will not wait the way script wait for the svMotion.

    But you will probably hit some limitations of vSphere on the maximum number of authorized svMotions.

    Simply by looking at the status of the powershell jobs (regardless of the method chosen to use), is not very conclusive (because of the maximum vSphere).

    You can query tasks in vSphere, and question the percentage of completion from there (if available).

    This object even the task should also tell you the status (running, ro pending)

  • Failed to create task scheduler to restart the system automatically within the given interval

    Dear experts,

    I have two accounts on my computer. One was a Director and another was normal user. but the two users are protected by Word.

    When I log in as normal user, how can I set a task in the Scheduler to restart the computer once every 6 hours.

    Thank you

    KP Swamy

    Hello PK Swamy.

    Welcome to the Microsoft Community Forum.

    The Task Scheduler service lets you perform tasks on a chosen computer automated. With this service, you can program any program to run at a convenient time for you, or when a specific event occurs. Task Scheduler monitors the time criteria or the event that you choose and execute the task when these criteria are met.

    I understand that you are not able to create the Task Scheduler to restart the system. Please, I beg you, don't worry I'll try my best to resolve the issue.

    I suggest you try the following steps to create the Task Scheduler:

    1. click on start, type taskschd.msc in the start search box and press enter (it will launch the Task Scheduler).

    Note: If you are prompted for an administrator password or a confirmation, type the password or provide confirmation and click Ok.

    2 left click in the right pane on the Task Scheduler Library > open Action in main menu > new folder > name MyTasks > click Ok.

    3. left-click on the MyTasks > menu, choose Action > create a basic task (it open Assistant tasks).

    4. you can enter the name , for example "restart" and click on Next.

    5. in the trigger section, you can specify when you want to run your task, for example:

    a. Select daily and the press Next.

    b. now you can specify the day, time and all reproduce on a daily basis, after the press Next.

    6. in the Action section, you can choose what you want to run, for example, restart your system to do this:

    a. choose start a program and press on Next.

    b. in the field program/script , type shutdown /r and click on Next.

    7. click on end.

    Check out the link:

    Schedule a task

    http://Windows.Microsoft.com/en-us/Windows/schedule-task#1TC=Windows-7

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

    Thank you

  • How to follow the line with the vision of the webcam and move along in this

    Hello world

    I have a question that I can't really find a topic about it.

    Currently, I had made my rover robot wireless control using a 3-axis joystick and works perfectly.

    But I want to add some features to the vision on board the rover system.

    I'm doing the webcam to detect a black line on a white background, and then, he moves just independently along the the line black.

    The thing is that I only know abit about installation in a vision... So, if anyone here able to guide me on the way?

    I use filtering color or color matching or model of a match?

    How to make sure that the black line remains in the middle of the vision? (Eg. moving itself at the center of the line within his vision)

    How can I control the engines using the achievements of the vision of the foregoing?

    Hey,.

    Your questions:

    I use filtering color or color matching or model of a match?

    Pattern Matching or Color Pattern Matching would slow down.

    I would use a 1 d Simple edge detection that returns the coordinates and the edge angle.

    How to make sure that the black line remains in the middle of the vision? (Eg. moving itself at the center of the line within his vision)

    You must control your motors that for example the angle is 0 degrees or 90 degrees (depending on your coordinate system) all the time.

    How can I control the engines using the achievements of the vision of the foregoing?

    This robot manual should tell you how to control the motors.

    Hope this helps,

    Christian

  • Error in printer HP - Officejet 4620 Script Wizard

    1. number and product name
    HP OfficeJet 4620

    2 operating system installed (if applicable)
    Windows 7 SP1

    3. error message (if any)
    When opening printer HP occur two script Wizard errors

    4. all changes made to your system until the problem occurred


    Installed the HP software from the website (latest version)


    Hello world

    Root cause:

    A default program to open this file has been correctly defined.

    Download and run the file below. Let me know what you find?

    Update of file association

    Thread resolved - why the wizard of the printer is not working?

  • Switches to scheduled tasks – run the box-

    I try with XP Pro to set a scheduled task to run CHKDSK with the f switch and save the results to a txt file.  I came up with the following to the box Z drive the newspaper in a folder on the D drive, called chkdsklogZ and run to run chkdsk on stor:

    Z:/f/x C:\WINDOWS\system32\chkdsk.exe > 'd:\chkdsklogZ\chkdsk.log '.

    Unfortunately, it does not run.  Any ideas on how to get it to work?

    Of course, it has a system of files and you run chkdsk on it to find and fix file system errors, however the map real cluster is still managed by the host operating system and logical or physical within the .vhd file errors would be fixed when running chkdsk on the drive of the host.

    My guess is that it can be a question of what chkdsk is logical or physical errors first, if chkdsk inside the disk hard virtual find the host probably corrected and the virtual hard disk file system is informed of these changes and retains its integrity, if errors are found when chkdsk is run on the host drive will be corrected the errors and the virtual hard disk file system may experience what whether of a hiccup to a complete failure.

    John

  • Connection cricket MSGM8 phone USB on my laptop (running Windows XP Pro) run the Add New Hardware Wizard, but cannot find drivers

    Original title: badminton MSGM8 phone to the USB port on my laptop to pis draft.exe

    connecting a phone to cricket MSGM8 USB on my laptop (running Windows XP Pro) run the Add New Hardware Wizard, trying to locate the software for Qualcomm CDMA Technologies MSM, but can not find the drivers, any fix?

    Hi ChristopherStout,

    (1) what is the complete error message you receive?

    (2) is limited only to Cricket MSGM8 phone?

    Method 1: Run the fixit available in the article below and then check if it makes a difference

    A computer that is running Windows XP cannot detect a USB, an Apple iPod flash drive or an external hard disk drive
    http://support.Microsoft.com/kb/925196

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows

    Method 2: If you provided drivers\software disc from the manufacturer of the computer, go ahead and install it.  You can see the steps outlined in the article below

    How to troubleshoot unknown devices listed in Device Manager in Windows XP
    http://support.Microsoft.com/kb/314464

  • the server is not registered with DCOM within the required time.

    I use Windows 7 Enterprise Edition (SP1). It works fine while working on it directly. But when I try to make the remote access connection in the machine it is restarted after a certain time (1 hour or more). I found error in the following system logs:

    Log name: System
    Source: Microsoft-Windows-DistributedCOM
    Date: 01/04/2013 18:41:34
    Event ID: 10010
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer: xxxxxx.yyyy.net
    Description:
    The server {AAC1009F-AB33-48F9-9A21-7F5B88426A2E} is not registered with DCOM within the required time.
    The event XML:
     
       
        10010
        0
        2
        0
        0
        0 x 80000000000000
       
        10589
       
       
        System
        XXXXX.yyy.NET
       
     
     
        {AAC1009F-AB33-48F9-9A21-7F5B88426A2E}
     

    Hi Varun,

     

    Thanks for posting your question in the Microsoft Community.

     

    The question you posted would be better suited in the TechNet Forums.

    I suggest you to ask your question in the below link:

     

    Windows 7 networking:

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

     

    I hope that the information above helps you.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

  • BPM process is blocked by human activity with participant parallel task

    Hello

    I have a simple process with human activity task the task human following with parallel participating settings

    SimpleProcessWithHT.JPG

    HTSettings.JPG

    I called the process and approved the task. The task has completed, but the process watch always that human activity task is being processed.

    ProcessState.JPG

    HTState.JPG

    ProcessDetail.JPG


    Wonder what I'm missing here. The clues, please? I use 11.1.1.7.0 version.

    Thank you

    Siva Renon

    There is a patch to correct this issue specifically. See the following notes of Support Oracle https://support.oracle.com/epmos/faces/DocContentDisplay?id=2099515.1

    Here is the link for the patch 22111729 https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?parent=DOCUMENT&sourceId=2099515.1&patchId=22111729

    Thank you

    Vikram

  • task in the Scheduler

    I have created a program, set the arguments and then created work using dbms_scheduler. Now I want to run this job with different values in a table and set the loop as below to define the different arguments. But I get the error as indicated. Please help me

    Start

    for rec loop (select name from project_tables)

    dbms_scheduler.set_job_argument_value (job_name = > 'myjob', argument_name = > 'VNAME', argument_value = > rec);

    end loop;

    end;

    Error report:

    ORA-06550: line 3, column 1:

    PLS-00306: wrong number or types of arguments in the call to 'SET_JOB_ARGUMENT_VALUE '.

    If you want to process in parallel, you can try something like DBMS_PARALLEL_EXECUTE. I gave the example of DBMS_PARALLEL_EXECUTE below, and I guess that your work is very well suited for the use of DBMS_PARALLEL_EXECUTE.

    -Test table creation

    CREATE TABLE test_parallel

    (

    Eid NUMBER

    DEPTNO NUMBER,

    job_id NUMBER,

    sess_id NUMBER

    );

    -Insertion of nulls, later the task updates the row

    INSERT INTO test_parallel

    SELECT NULL, deptno, NULL, sess_id FROM dept;

    -Logics of business you want to run in parallel

    CREATE OR REPLACE

    PROCEDURE test_parellel_update)

    p_start_id NUMBER,

    p_end_id NUMBER,

    p_jobid NUMBER)

    AS

    BEGIN

    UPDATE test_parallel

    SET eid = eid + 10,

    job_id = p_jobid,

    session_id = SYS_CONTEXT ('USERENV', 'SESSIONID')

    WHERE deptno BETWEEN p_start_id AND p_end_id.

    END;

    -Parallel jobs that is used to call the procedure that includes all the logic of the enterprise

    CREATE OR REPLACE

    PROCEDURE proc_parallel_task)

    p_jobid NUMBER)

    AS

    l_stat VARCHAR2 (200);

    l_loopcnt NUMBER: = 0;

    l_status NUMBER;

    BEGIN

    DBMS_PARALLEL_EXECUTE. CREATE_TASK ('ANNEDMUND_TASK');

    ((- There are three ways to create a pieces, 1) CREATE_CHUNKS_BY_ROWID, 2.) CREATE_CHUNKS_BY_NUMBER_COL, 3) CREATE_CHUNKS_BY_SQL

    -If you want to create a piece using ROWID uses CREATE_CHUNKS_BY_ROWID

    -If you want to create a piece using the column sequence number using CREATE_CHUNKS_BY_NUMBER_COL

    -If you want to create a piece using the sql query using CREATE_CHUNKS_BY_SQL

    DBMS_PARALLEL_EXECUTE. CREATE_CHUNKS_BY_NUMBER_COL ('ANNEDMUND_TASK', - task name

    'SCOTT',                                                            -- Owner name

    'DEPT', - Table name to create a pieces

    "DEPTNO", based on which column you want to create a pieces

    4 - pieces how you want to treat each parallel working

    );

    -: start_id,: end_id is the placeholder for the value of the segment.

    l_stat: = ' BEGIN test_parellel_update(:start_id,:end_id,:p_jobid); END;';

    -With parallel task execution how many jobs you want (I said 4)

    DBMS_PARALLEL_EXECUTE. RUN_TASK ('ANNEDMUND_TASK', l_stat, DBMS_SQL. NATIVE, 4);

    -Get the status of employment

    l_status: = DBMS_PARALLEL_EXECUTE. TASK_STATUS ('ANNEDMUND_TASK');

    -Make a loop and check whether or not the work has been completed

    WHILE (l_status! = DBMS_PARALLEL_EXECUTE.) FINISHED)

    LOOP

    DBMS_PARALLEL_EXECUTE. RESUME_TASK ('ANNEDMUND_TASK');

    l_status: = DBMS_PARALLEL_EXECUTE. TASK_STATUS ('ANNEDMUND_TASK');

    END LOOP;

    DBMS_PARALLEL_EXECUTE. DROP_TASK ('ANNEDMUND_TASK');

    END;

    Finally, you can call the proc_parallel_task procedure in a job.

    Here is the url of the document that is explained DBMS_PARALLEL_EXECUTE

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/d_parallel_ex.htm#ARPLS233

  • Configuration in the event handler scripts

    Hi guys,.

    This is my first question here.

    Please forgive me if I have some grammar errors.

    I'm building a plugin for Photoshop CC which includes several scripts jsx and a Panel of the HTML of the CEP.

    In my plugin I would activate a script jsx on all the actions that the user is within the app.

    I managed to achieve using the Script event handler and parameters of my script to run the event "Everything" (see image below).

    My question is if anyone knows how I can configure my jsx script in the handler automatically during the installation of my plugin.

    I'm not talking about copy the script in the destination folder (settings presets/scripts /).

    The flow I'm looking for is as follows:

    1. The user install my plugin from https://creative.adobe.com/addons
    2. Activate user the plugin by going to Windows-> Extensions-> MyPluginName
    3. When loading my CEP Panel, he calls a script jsx (which is included in the plugin).
    4. The jsx (from the 3rd stage) script sets another jsx script (which is also included in the plugin) to operate on all the actions that the user makes the Photoshop app.

    I need an automatic solution to the fourth step. Anyone...?

    Capture.JPG

    P.s

    I am familiar with the events Manager.xml Script file, but the addition of my script to the list is a partial solution.

    I am looking for a fully automatic solution in the background.

    app.notifiersEnabled = true;
    app.notifiers.add( "All ",new File('path/to/your.jsx') );
    
  • Model of ADF for use within the declarative component project

    Hello

    JDev 11.1.2.4

    I created a project for my declarative components. I want to create an element with an attribute of type oracle.jbo.Row, but this class is not recognized. What are the libraries I need to include if I want to use the object Row.

    Some basic information: my declarative component is bound to a managed bean.

    Import oracle.jbo.Row;

    @ManagedBean (name = "audit")

    @RequestScoped

    public class AuditBean {}

    Online Privacy;

    public AuditBean() {}

    Var UIXDeclarativeComponent = (UIXDeclarativeComponent) JSFUtils.resolveExpression("#{comp}");

    If (vars == null) {}

    again, throw PropertyNotFoundException ("could not find the name of the attribute [comp] component declarative Vars.");

    }

    line = vars.getAttributes () .get ("row");

    }

    }

    Most of our table have the same fields of audit, and we want to create a component that displays audit information. The component would take the line and check if the attributes are present, if so, display them.

    Thank you

    Hello

    Line belongs to the ADF runtime library. However, your declarative component seems to have another flaw, that is, it uses a bean managed within the scope of the request. She should better use backingBean range (a range of task flow) so it can be used multiple times on a page without the substitution of a previous rendering information. Maybe this isn't a problem if the component cannot forget his condition after rendering

    Frank

  • automatic creation of the search in the merger, using script values

    Hi all

    I belong to gentle people to the team of merger integration. We use the FBL interface to load data into the merger.

    Adding search codes defined by the user to specific types of extensible search is a manual task of the implementer of the application.

    We want to automate this manual task.

    We want to prepare the script that will automatically extracted invites & translate PeopleSoft values and creates these values as codes of existing types of research in Fusion research.

    Appreciate any suggestion/solution to it.

    Thanks in advance,

    Kiran

    Hi Kiran,

    I'm not aware of the peoplesoft Board, but you can use FND_LOOKUP_VALUES_PKG. INSERT_ROW API in your script to insert into the table of values of research Fusion.

  • The parallel procedure in the ODI package

    I would like to implement a package in ODI do all tasks in a process flow that I had in OWB. a screenshot of what I had in OWB is here:

    http://postimg.org/image/dvixew9x3/

    AFAIK, in ODI we should be producing scenarios if we want to perform some procedures in parallel (whereas we had in the OWB, fork component that allows to launch procedures in parallel).

    The problem is that I have too many packages that almost all of them use these procedures with their own settings, so I have to generate around one hundred of each procedure scenarios. Scenarios of that difficult managers.

    What is your suggestion?

    If I understand correctly, the problem is with the option "Remember history" of your variables.

    If the history of keep is located on 'The most recent value' or 'All values', then the value will be shared by all sessions. If a session changes the value of a variable, the new value will be see by other sessions.

    If keep historical is set on 'No. History', the value will be isolated for each session. Change the value in a session will not affect the other. I guess you want to go for that one.

    In your packet for each of your scenario, you can go on the additional Variables tab in the properties and set the value of each variable.

    Kind regards

    JeromeFr

  • Make the swatch legend Script

    I was wondering if someone could help me edit this text written by John Wundes. Its almost perfect for what I need, but my problem is the text within the sample box when it is returned to the little ones. Ideally, I'd like that it be 90% of the actual sample size. I copied and pasted here if someone could help me I would be very happy. I tried to ask John on his Blog a few times, but I got no response. Also I would like to delete the CMYK values it returns with just the name of PMS only.

    Make the legend Swatch v1.1 - CS, CS2, CS3, CS4, CS5

    //>=--------------------------------------

    //

    This script will generate a legend of the rectangles for every nuance in the main Swatches palette.

    You can configure the display space and value by configuring the variables at the top

    the script.

    Update: v1.1 now test the brightness of colors and returns a white label if the color is dark.

    //>=--------------------------------------

    / / JS code (c) all rights reserved: John Wundes ( [email protected] ) www.wundes.com

    / / copyright full text here: http://www.Wundes.com/js4ai/copyright.txt

    //

    //////////////////////////////////////////////////////////////////

    doc = activeDocument,

    color chart = doc.swatches,

    cols = 10,

    displayAs = "CMYKColor" //or "RGBColor".

    rectRef = null,

    textRectRef = null,

    textRef = null,

    rgbColor = null,

    w = 150;

    h = 150,

    h_pad = 100,

    v_pad = 100,

    t_h_pad = 100,

    t_v_pad = 100,

    x = null,

    y = null,

    Black = new GrayColor();

    White = new GrayColor()

    ;

    Etc = 100;

    White.Gray = 0;

    activeDocument.layers [0] .locked = false;

    newGroup var = doc.groupItems.add ();

    newGroup.name = "NewGroup";

    newGroup.move (doc, ElementPlacement.PLACEATBEGINNING);

    for (var c = 2, len = swatches.length; c < len; c ++)

    {

    swatchGroup var = doc.groupItems.add ();

    swatchGroup.name = color chart [c] .name;

    x = (w + h_pad) * (c % COL);

    y=(h+v_pad)*(math.floor((c+.01)/cols)) *-1;

    rectRef = doc.pathItems.rectangle (y, x, w, h);

    rgbColor = .color swatches [c];

    rectRef.fillColor = rgbColor;

    textRectRef = doc.pathItems.rectangle (t_v_pad-y, x + t_h_pad, w.-(2*t_h_pad), h.-(2*t_v_pad));

    textRef = doc.textFrames.areaText (textRectRef);

    textRef.contents = color chart [c] .name + "\r" + getColorValues (swatches [c] .color);

    textRef.textRange.fillColor = is_dark (swatches [c] .color)? White: black;

    //

    rectRef.move (swatchGroup, ElementPlacement.PLACEATBEGINNING);

    textRef.move (swatchGroup, ElementPlacement.PLACEATBEGINNING);

    swatchGroup.move (newGroup, ElementPlacement.PLACEATEND);

    }

    function getColorValues (color)

    {

    If (Color.TypeName)

    {

    Switch (Color.TypeName)

    {

    case "CMYKColor":

    If (displayAs == "CMYKColor") {}

    return ([Math.floor (color.cyan) Math.floor (color.magenta), Math.floor (color.yellow), Math.floor (co lor.black)]) ;}

    on the other

    {

    Color.TypeName = "RGBColor";

    return [Math.floor (color.red), Math.floor (color.green), Math.floor (color.blue)];

    }

    case "RGBColor":

    If (displayAs == "CMYKColor") {}

    Return rgb2cmyk (Math.floor (color.red), Math.floor (color.green), Math.floor (color.blue));

    } else

    {

    return [Math.floor (color.red), Math.floor (color.green), Math.floor (color.blue)];

    }

    case "GrayColor":

    If (displayAs == "CMYKColor") {}

    Return rgb2cmyk (Math.floor (color.gray), Math.floor (color.gray), Math.floor (color.gray));

    } else {}

    return [Math.floor (color.gray), Math.floor (color.gray), Math.floor (color.gray)];

    }

    case "SpotColor":

    Return getColorValues (color.spot.color);

    }

    }

    return 'no Standard color Type';

    }

    function rgb2cmyk (r, g, b) {}

    var computedC = 0;

    var computedM = 0;

    var computedY = 0;

    var computedK = 0;

    remove the spaces of input RGB values, convert to int

    var r = parseInt (('' + r) replace (/ \s/g, "), 10);

    var g = parseInt (('' + g) replace (/ \s/g, "), 10);

    var b = parseInt (('' + b) replace (/ \s/g, "), 10);

    If (r == null | g == null | b == null |)

    isNaN (r) | isNaN (g) | isNaN (b))

    {

    Alert ("Please enter the numeric RGB values!");

    return;

    }

    If (r < 0 | g < 0: b < 0 | r > 255 | g > 255: b > 255) {}

    Alert ("the RGB values must be in the range 0 to 255");

    return;

    }

    BLACK

    If (r == 0 & & g == 0 & & b == 0) {}

    computedK = 1;

    return [0,0,0,1];

    }

    computedC = 1 - (r/255);

    computedM = 1 - (g/255);

    computedY = 1 - (b/255);

    var minCMY = Math.min (computedC,

    Math.min (computedM, computedY));

    computedC = (computedC - minCMY) / (1 - minCMY);

    computedM = (computedM - minCMY) / (1 - minCMY);

    computedY = (computedY - minCMY) / (1 - minCMY);

    computedK = minCMY;

    return [Math.floor(computedC*100), Math.floor(computedM*100), Math.floor(computedY*100), Math.floor (computedK * 100)];

    }

    function is_dark (color) {}

    If (Color.TypeName)

    {

    Switch (Color.TypeName)

    {

    case "CMYKColor":

    return (> 50 color.black |) (color.cyan > 50 & & color.magenta > 50)) ? true: false;

    case "RGBColor":

    return (color.red < 100 & & color.green < 100)? true: false;

    case "GrayColor":

    return color.gray > 50? true: false;

    case "SpotColor":

    Return is_dark (color.spot.color);

    Returns false;

    }

    }

    }

    Natesroom1 wrote:

    1. the text is small

    2 remove the CMYK values it returns with just the name of PMS only

    Just a quick look at the code, try the following:

    1.) for the size, after this line:

    textRef = doc.textFrames.areaText(textRectRef);
    

    Add the following line, the numerical value on any size suits you:

    textRef.textRange.characterAttributes.size = 20;
    

    (2.) about removing the CMYK values for PMS colors, change this line:

    textRef.contents = swatches[c].name+ "\r" + getColorValues(swatches[c].color);
    

    To do this:

    textRef.contents = swatches[c].name;
    

    Once again... just a little wink, but maybe it will help your efforts.

Maybe you are looking for