Use the Edittext text as layer name?

I build my own window prompt() for a script, but may not know how to use the text in the text field.

What I want to do is to use the text as the name of the layer.


Is there an input method or something I can use for this?



Prompt() custom;


var promptWin is new window ('dialogue', 'Pre dial the name');.

var promptInputGroup = promptWin.add ('group');

promptInputGroup.add ('statictext', undefined, ' name: ');

var textFiled = promptInputGroup.add ('edittext', undefined, 'Demo');

textFiled.characters = 20;

textFiled.active = true;

var groupTwo = promptWin.add ('group', undefined, "GroupTwo");

groupTwo.orientation = "row";

var okDialog = groupTwo.add ("button", undefined, "OK");

var cancelDialog = groupTwo.add ("button", undefined, "Cancel");

groupTwo.alignment = 'right ';

promptWin.show ();

Quentin

Should be as simple as the definition of an onClick for button okDialog send the value to a variable or use the value immediately.

var myVal;

okDialog.onClick = function() {}

myVal = textFiled.text;

}

You can also define an onChanging rather than the value to be sent in real-time as the user types. With each character typed, it would save everything right to your variable. I have to be careful though as malicious code could also quickly being sent to your script, depending on how you manage data the user enters.

okDialog.onChanging = function() {}

myVal = textFiled.text;

}

Tags: After Effects

Similar Questions

  • How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Active Sync iPad ssl Client certificate

    How do I configure the iPad2 to synchronize the iPad-Mailclient with Exchange 2010 via Active Sync using the certificate SSL client and name of user and password?

    Hi Ewoki,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the TechNet Exchange forum. Please post your question in the Forums TechNet in Exchange Server.

  • Try to adjust the text of the labels. Is constantly "could use the tool text because the channel of the target is hidden"?

    Try to adjust the text of the labels. Is constantly "could use the tool text because the channel of the target is hidden"?

    Hi Matthew,

    Go to the Palette layers and make sure all are highlighted, not just one

    Kind regards

    Tanuj

  • I can't get a list of bullited when you use the synchronized text feature.

    I can't get a list of bullited when you use the synchronized text feature. The option is grayed out and no assets. Any tips? I'm doing something wrong?

    It is by default, the synchronized text does not change any style and other visual attributes associated with the instance.

    Thank you

    Sanjit

  • Find the alert and multi layer names

    Hi all

    I'm trying to export pdf using layer of condition names, if this layer should alert the names match, otherwise the pdf export.

    If only a single layer it works fine, when multi layers does not.

    my code is always alert if layer names are correct, what is the problem in my code, anyone can correct.

    help would be appreciated

    LY = app.activeDocument.layers.everyItem () .getElements ();

    for (i = 0; i < ly.length; i ++) {}

    If (ly [i] .name! = "BaseArtwork", "MagentaVariables", "PreprintedText", "OtherVariables") {}

    Alert ('layer names check'), exit();

    } else {}

    var myJobOptionName = "press [quality]";

    var myOutFolderPathName = ' / users/wleastudio/Desktop/Watched folder/Out / ";

    var myPDFFilePath;

    var InDJobOption = app.pdfExportPresets;

    myPDFFilePath = myOutFolderPathName+"/"+app.documents[0].name.split(".indd") [0].split(".) INDD") [0] +".pdf ";

    App.documents [0] .exportFile (ExportFormat.pdfType, myPDFFilePath, myJobOptionName, false);

    }

    }

    Thanks in advance

    Steve

    Hi Steve,.

    Try now.

    Array.prototype.contains = function(k)
    {
      for(var i=0; i < this.length; i++)
      {
            if(this[i] === k)
            {
                return true;
            }
        }
      return false;
    }
    var _layers = [ "BaseArtwork", "MagentaVariables", "PreprintedText", "OtherVariables"];
    var match = [];
    var ly = app.activeDocument.layers.everyItem().getElements();
    if(ly.length == 4){
        for (i=0; i
    

    Kind regards

    Cognet

  • Can I use the part of a file name in a watermark?

    Hello

    I have a lot of files to .tif I need to convert to PDF and then affix a unique watermark.

    This watermark will be based on the file name, but only a part of it. For example a document with file bmw06125_x_1.pdf name should be stamped with a watermark indicating something like "see mw06125".

    So basically, what I need is the mw06125 of the file name part to be part of the watermark is it possible with my copy of Acrobat Pro.

    I am very new to this software and I still have to use it effectively, but I don't know that it will allow me to automate a large number of stamping and conversion. I was also wondering if it was possible to use Excel spreadsheets as part of automation, because I am able to write a formula that will allow to create the name.

    Any help would be appreciated.

    -Alistair

    You can use the wizard from the Action with JavaScript for this.

  • How to select data using the same remote database column name 3

    Hello


    Can anyone help me on how to get the data with the same remote database column names 3 and a unique nickname.

    E.g.

    SELECT *.
    B.SID, b.status, SUM (b.qty) qantity MAX (b.) date_as_of
    Of
    * ((table1@remotedatabase1, table1@remotedatabase2, table1@remotedatabase3) has, *)
    (* (table1@remotedatabase1, table1@remotedatabase2, table1@remotedatabase3) b). *
    WHERE b.dept = 'finance '.
    AND a.position = "admin".
    AND a.latest = 'Y' AND (b.status <>"MLT") AND b.qty > 0;
    B.SID GROUP, b.status;

    NOTE: the instructions "BOLD" is just an example of what I want to do but I always get an error beacause of ambiguous column.

    Thanks to advnce. :)

    Published by: user12994685 on 4 January 2011 21:42

    user12994685 wrote:

    Can anyone help me on how to get the data with the same remote database column names 3 and a unique nickname.

    Not valid. This makes no sense and breaks all the rules of scope-resolution. And if it is in a single database, or uses tables in databases, is not relevant.

    Each object must be particularly well identified. If you cannot do this:

    select * from (table1@remotedatabase1, table1@remotedatabase2, table1@remotedatabase3) a
    

    3 objects cannot share the same alias. Example:

    SQL> select * from (dual, dual) d;
    select * from (dual, dual) d
                       *
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    

    You need to combine objects - by using a join union or similar. He will have to be done as follows:

    SQL> select * from (select * from dual d1, dual d2) d;
    select * from (select * from dual d1, dual d2) d
           *
    ERROR at line 1:
    ORA-00918: column ambiguously defined
    

    However, we need to have unique column in a projection of SQL names - so the join of the need to project a unique set of columns. So:

    SQL> select * from (select d1.dummy as dummy1, d2.dummy as dummy2 from dual d1, dual d2) d;
    
    DUM DUM
    --- ---
    X   X
    
    SQL> 
    

    I suggest that you look carefully at what opportunities are and how it applies in SQL - and ignore if the referenced objects are local or remote, because it has no effect on the basic principles of scope-resolution.

  • How can I do a countdown without use the effects &gt; text &gt; numbers?

    I know how to make a countdown using Effects > text > numbers, but that is limited to "30 000" the number.

    I need to count backwards from 6,500,000,000.

    Any ideas how to remove that (and especially the separation with commas)?

    I was about to try this tutorial , but it has the same limit of number 30000.

    Perhaps misunderstood that, although...

    You probably, but not in a strictly formalistic sense. This problem is a general limitation in how deals AE 16-bit double whole precision that affects all the effects / values of the controls (see here for another such case). When you are missing the obvious, is that you don't recognize that for the Visual result no matter how the numbers are generated mathematically, which means that nothing prevents you to use these multiple effects and stringing together to create the illusion. People have done this for years. As an alternative, try to use layers of text and expressions as explained here.

    Mylenium

  • using the variable as a field name in a query

    Oracle 10G


    Hi all

    I have a table like:

    TEST_MSL
    CID NUMBER (10),
    TEST_1 VARCHAR2,
    TEST_2 VARCHAR2

    Now, I want to use a procedure such as:

    create or replace procedure TEST
    (VARIABLE_1 IN VARCHAR2) Possible values (TEST_1, TEST_2)
    as
    BEGIN

    declare
    cursor c1 is
    Select the CID
    where VARIABLE_1 = 'BLAH '.

    My problem is:

    How can I use this variable as a domain name?

    Kind regards

    Menk Slot

    Published by: Menk slot on June 3, 2010 10:46

    If you know that there are only two possibilities so preferable to use as static SQL statements

    procedure test(v_cloumn_name varchar2) IS
    IF v_column_name='TEST_1' THEN
    SELECT CID INTO var where TEST_1='BLABLA';
    ELSE
    SELECT CID INTO var where TEST_2='BLABLA';
    END;
    

    Otherwise, use Ref cursour as

    declare
    v_sql_stm varchar2(200);
    refcur sys_refcursor;
    begin
    v_sql_stm:='SELECT CID FROM TEST_MSL WHERE '||v_cloumn_name||' = ''BLABLA''';
    open refcur for v_sql_stm;
    
  • I want to restore the size of normal printing for everything on my computer. I tried using the page (text size) and it did nothing, can you help me?

    text size problem

    I'm not sure what means 'normal' - I assume that means you had recently but has changed.  Do a system restore to a point at the time the text was the right size and format you want - BEFORE it changed to what you don't want.  Here is the procedure: http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/.  Don't forget to check the box to show more than 5 days worth of restore points.  If this does not work at first, try a previous restore point or two.  NOTE: You will need to re - install any software or updates installed between now and the point of restoration - but you can make updates through Windows Update.

    As an alternative, you can go to start / Control Panel / customization / display settings / and set the resolution to a different setting.  Click on apply, and it will ask you if you really want to change based on what you see now.  Click on your answer and either output or try another setting.  It is a more difficult way to do a system restore because it is difficult to choose the same size you had before.

    Good luck and I hope this helps. Lorien - a - MCSE/MCSA/network + / A +.

  • Using the network authentication Windows 7 name of user and password to connect to a network (internet access)

    When I try to CONNECT to my network, I get a window of security Windows network authentication requires a user name and password. I have no idea this here. Apparently until I find it I will not be able to connect wirelessly to the Internet

    I assume you are using Windows 7 and trying to connect to the wireless network? There are many discussions here for precisely this question and answers not very unhelpful.  Have you tried to manually add the wireless network and select Connect automatically?   This seems to have solved my problems.

    1. open network and sharing Center (click on start - Control Panel - Network and sharing Center)

    2. click on manage networks wireless on the left side and opens a new window - manage wireless networks that use (wireless)

    3. click on add

    4. click on add a network profile

    5. Enter the name of the network - security Type and security key (this info should be provided by your internet service provider)

    6. check the box that says "Connect automatically when this network is in range" and click the next button

    7. click on the close button in the next window that opens (or you can take a look at the settings, if you like, and then click close)

  • Using the PDF text in a Word Doc

    Any suggestions on how to take the text from a PDF and use in Word doc

    (1) convert the PDF into a Word document by opening it in Acrobat and select the file-> save as-> Micorsoft-> Word and then copy the content you want in the Word doc.

    or

    (2) take a screenshot of the text and save it as an image that you embed in the Word doc

  • Using the same text on the desktop, Tablet and smartphone

    Is there a feature of Muse or a widget that allows the creation of a copy of the source file which can be imported and formatted in the desktop environment, Tablet and smartphone formats for this source of copy changes are updated simultaneously in all formats [and then reissued]?

    Hello

    At the current stage, you must create the page for all versions as items creating different arrangements will copy plan of the site, the attributes and fill them with browser.

    You can view pre-built templates that can be useful in your case:

    Adobe Muse models and themes - sample of Web sites

    http://www.musegrid.com/

    Thank you

    Sanjit

  • ExportPDF unique pages with the heading text (content) file name

    Hi all

    I found PEU5 for export in the form of simple pages it works fantastic!, now how can I call the content of the topic as file name in the export to Pdf

    any help please...

    HI DAVID DAVA!

    TRY THIS

    app.findGrepPreferences = null;

    app.findGrepPreferences.appliedParagraphStyle = "Title";

    result = app.activeDocument.findGrep ();

    While (result.length)

    {

    Str = result.pop ();

    myDoc var = app.activeDocument;

    app.findGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.findWhat = str.contents;

    var myFind = myDoc.findGrep ();

    for (var a = myFind.length - 1; a > = 0; a-) {}

    Alert (myFind [a]. (Happy);

    myFinds = myFind [a]

    }

    for (var myCounter = 0; myCounter<>

    myCounter ++) {}

    myPageName = myDocument.pages.item (myCounter) .name;

    app.pdfExportPreferences.pageRange = myPageName;

  • copy the content to another using the checkbox text area

    Hello
    I have a form that contains 2 fields (text box)
    Current address and permanent address

    If the addresses are the same then user only on a check box to copy the contents of the current address of permanent item field.

    I'm no JavaScript expert, but this works for me.

    http://Apex.Oracle.com/pls/OTN/f?p=579:22

    This example contains two text boxes: P22_TEST1 and P22_TEST2 and copies when you click on the check box.

    To create this:

    In the page attributes define the HTML header

    
    

    in the box set the Form HTML element attributes

    onchange="copyItem('P22_TEST2')"
    

    I hope that helps

    Shunt

Maybe you are looking for