source definition text showing tank hard to index 0

There is a bug that I just can't understand it. I have the following code on the Source text property of a text field:

A="";

for (i = 0; i < 10; ++ I) {}

A +=(Random() > 0,5?) "0" :"1")+"\r";

}

It should create a random vertical text of randomized of 1 and 0 as follows

0

1

1

0

1

0

0

0

1

0

But there is a bug in sequelae that it displays the first character as a point. It makes no sense at all...

.

1

1

0

1

0

0

0

1

0

If the loop is i < 9 then the character is a colon. I declare the variable 'A' wrong?

tried of your expression in 13.8.1 and it works without the "."

still, it's probably a good idea to try to ask for help here: after effects Expressions

Tags: After Effects

Similar Questions

  • I deleted all my photos and music from my mac and moved to my time capsule. It still shows my hard drive as full? I have to format

    I deleted all my photos and music from my mac and moved to my time capsule. It still shows my hard drive as full? I have to format

    If you restarted the computer, which can help the system see the

    amount available content recently removed as free to crush.

    Sometimes, a reboot with a quick operation of the SHIFT key down, can

    help the system file check and minor repairs on start up.

    • Try safe mode if your Mac does not end commissioning - Apple Support

    A moment after this restart, you should see a login to continue

    If secure boot will be available. You could repair disk permissions

    in this mode, or use it for troubleshooting. Restart normally

    subsequently pressing don't all the keys, just restart. IF that is not

    help, then try this short method to rebuild the Spotlight index; It can

    Take the time to complete the process:

    • Rebuild the Spotlight index on your Mac - Apple-Support-link

    https://support. Apple.com/en-us/HT201716

  • How to add text/solid/shape at specific index?

    Hello, is it possible to add shape/text/solid to a specific index in a publication? As for example a publication has 5 layers and I want to add a solid to index 3 rather than at the beginning layers as it does by default. The definition of solid ID after I added it does not work, because as its readOnly.

    As much as I know there is no way to change the index while creating a layer.

    Look in >. Page.87, there are a 4 methods to meet your need once the layer is created.

    App.Project.Item (index). Layer (index) .moveToBeginning ();

    App.Project.Item (index). Layer (index) .moveToEnd ();

    App.Project.Item (index). Layer (index). MoveBefore (targetLayer); targetLayer is an AVLayer object, then you should try this way: targetLayer = app.project.activeItem.layer (index);

    App.Project.Item (index). Layer (index). MoveAfter (targetLayer);

    I almost forgot that the script can use app.executeCommand (app.findMenuCommandId ("shape layer")); to add a shape layer just above your selectedLayers. I don't remember, but maybe that this feature is supported after AE CS6

  • Texts show the number instead of name info.

    Texts show the phone number instead of name on my Apple Watch info.

    Hello

    On your iPhone, in the Contacts application: check that you have created a form of contact for the sender and that the map includes the sender name and phone number.

  • I work with dreamweaver cs6 running on Apple Mavericks.  The site definition window shows all different fields by opening. I have to click blind with the mouse cursor in this window until the fields appear.  It is a very bored

    I work with dreamweaver cs6 running on Apple Mavericks.

    The site definition window shows all different fields by opening. I have to click blind with the mouse cursor in this window until the fields appear.

    It is somehow very annoying to complete the connection to the server and all the other things.

    Is there a solution?

    If this is the case, I think that it is perhaps a good idea to uninstall Dreamweaver. Before you reinstall, make sure that your personal configuration file has been deleted (see reinstalling Dreamweaver (or the extensions Manager) fails to solve problems). You should then have a completely clean copy of Dreamweaver has again the default settings of the program.

  • The source of text of hyperlink destination

    If you go to a destination of the hyperlink text and look in the editor mode, you should be able to see a small symbol that resembles a rounded corner square with a circle and cross inside. I guess that's an invisible text element that is used to bind to the source.

    I want to be able to do is to select one of these items and using JavaScript to select the source element... However, I am having a hard time getting the script to recognize this element as anything... Not to mention about his relationship with a source.

    I hope it's quite explanatory.

    Hi all

    Back from my break.

    I found the problem 2.

    (1) how to get the hyperlink sources since the destinations, i.e. you can so make reverse it as Pickory suggested.

    (2) how to find the symbol of Destination which can be seen on the editor mode, but is not a symbol of hidden character.

    This can be done with indesign GREPs as there is no symbol on the main screan (Peter correct me if I'm wrong), but can be found with a regex in javascript

    reg = /\ufeff/g;
    q = mySelection.contents.search (reg);
    

    All this does is find the symbol, but that is just a symbol that contains no information, know where it is associated with to compare the point insertion and history co-ordinated the symbol with the values in destinations.

    Of the to do quickly, I make a table (see text)

    There is a problem with that what the values or static is ok for creating an index or something like that, but if we replace the main text story / the symbol insertion point will change and the script won't find the destination with the symbol.  I this is a problem take advantage of re-writing of scripts there.

    Kind regards

    Trevor.

    P. s.

    MAKE SURE THAT THE JAVASCRIPT CONSOLE IS OPEN OR THAT YOU WILL NOT SEE THE SCRIPT TO DO ANYTHING!

    // Hyperlink Destination Source Script byTrevor http://forums.adobe.com/message/4721797#4721797
    // MAKE SURE THAT THE JAVASCRIPT CONSOLE IS OPEN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    // SCROLL  UP THE CONSOLE UNTIL YOU SEE (:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)
    
    var myDoc = app.documents[0],
    myDestinations = myDoc.hyperlinkTextDestinations.everyItem().getElements(),
    mySources = myDoc.hyperlinkTextSources.everyItem().getElements(),
    myHyperLinks = myDoc.hyperlinks.everyItem().getElements(),
    dl = dll = myDestinations.length,
    hl = hll = myHyperLinks.length,
    myDestinationsSearchTable = [],
    myHypers = {}, hyps = [], dests = [], n,
    mySelection = app.selection[0];
    
    // Make an index of destionation sources from the hyperlinks that contain both sources and destinations
    // This will miss any Destinations that don't have sources
    $.writeln ("\r\r(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)\r(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)(:-)\r\rHyperlinks Sources from Destinations Script\r\rThese are my look up keys")
    while (hll--)
        {
            if (myHyperLinks[hll].destination != null)
            {
                if (hyps[myHyperLinks[hll].destination.index] == null)
                {
                    hyps[myHyperLinks[hll].destination.index] = {};
                    hyps[myHyperLinks[hll].destination.index]["Destination"] = myHyperLinks[hll].destination;
                    hyps[myHyperLinks[hll].destination.index]["Sources"] = [];
                 }
                hyps[myHyperLinks[hll].destination.index]["Sources"].push(myHyperLinks[hll].source);
            }
         }
    
    // make an array of all destinations with what every properties you want to extract i.e. name location sources page number etc.
    // add or remove as prperties as needed "DestinationID" is used here for the search look up table
    while (dl--)
        {
            dests[dl] = {};
            destIndex = myDestinations[dl].index;
            dests[dl]["DestinationID"] = myDestinations[dl].destinationText.parentStory.index+"x"+myDestinations[dl].destinationText.insertionPoints.lastItem ().index;
            myDestinationsSearchTable[dests[dl]["DestinationID"]]=dl; // makes a look up table to use for search
            $.writeln("myDestinationsSearchTable ["+dests[dl]["DestinationID"]+"] = "+dl);
            if (hyps[dl] != null)
            {
                dests[dl]["HasSource"] = 1;
                dests[dl]["DestinationName"] = hyps[destIndex]["Destination"].name;
                dests[dl]["DestinationIndex"] = destIndex;
                dests[dl]["DestinationInsertionPoint"] = hyps[destIndex]["Destination"].destinationText.insertionPoints;
                dests[dl]["DestinationCharater"] = hyps[destIndex]["Destination"].destinationText.insertionPoints.lastItem ().index;
    
                dests[dl]["DestinationStory"] = hyps[destIndex]["Destination"].destinationText.parentStory.index;
                dests[dl]["DestinationCharaterCode"] = myDoc.stories[dests[dl]["DestinationStory"]].characters[dests[dl]["DestinationCharater"]].contents.charCodeAt(0).toString(16);
                dests[dl]["DestinationPage"] = (hyps[destIndex]["Destination"].destinationText.parentTextFrames[0].parentPage != null) ?  hyps[destIndex]["Destination"].destinationText.parentTextFrames[0].parentPage.name : "Off the Page";;
                dests[dl]["SourceNames"] = [];
                dests[dl]["SourceIndexs"] = [];
                dests[dl]["SourcePages"] = [];
                l = hyps[destIndex]["Sources"].length;
                dests[dl]["Destination"] = hyps[destIndex];
    
                while (l--)
                    {
                        dests[dl]["SourceNames"].push(hyps[destIndex]["Sources"][l].sourceText.contents);
                        dests[dl]["SourceIndexs"].push(hyps[destIndex]["Sources"][l].index);
                        (hyps[destIndex]["Sources"][l].sourceText.parentTextFrames[0].parentPage != null) ?
                        dests[dl]["SourcePages"].push(hyps[destIndex]["Sources"][l].sourceText.parentTextFrames[0].parentPage.name) :
                        dests[dl]["SourcePages"].push("Off the page");
                      } 
    
            }
           else dests[dl]["HasSource"] = 0;
         }
     // if there's text selected search for destination anchors
    if ( app.documents.length && app.selection.length && mySelection.hasOwnProperty ( 'baseline' ) && mySelection.constructor.name != "InsertionPoint")
        {
            var mySelectionDestinations = [],
            // this is the unicode for the destination symbol
            q=0,
            indexAdjust = mySelection.parentStory.texts.itemByRange (mySelection.parentStory.characters[0], mySelection.characters[0]).characters.length-1,
            myStory=mySelection.parentStory.index,
            reg = /\ufeff/g;
            $.writeln("*********** Destinations in Selection **********")
            while (q != -1)
                {
                    q = mySelection.contents.search (reg)
                    if (q != -1) // when used in practise remove the if condition and pop array after loop
                        {
                            mySelectionDestinations.push(dests[myDestinationsSearchTable[myStory+"x"+(q+indexAdjust)]]);
                            $.writeln("mySelectionDestinations ["+(mySelectionDestinations.length-1)+"] = myDestinationsSearchTable ["+[myStory+"x"+(q+indexAdjust)]+"] = "+myDestinationsSearchTable[myStory+"x"+(q+indexAdjust)])
                        }
                }
            $.writeln ("################\rThese are these are the destinations in the selection: "+mySelectionDestinations+"\r")
            for (n in mySelectionDestinations) $.writeln (mySelectionDestinations.toSource()+"\r###########\r\r")
        }
    
    $.writeln ("%%%%%%%%%%%%%%\rThese are all the document's hyperlinks that have destination\r");
    for (n in hyps) $.writeln (n+"\t"+hyps[n].toSource()+"\r--------------------------");
    $.writeln("++++++++++++++++++++++++++++++++++++\r\r"+
        "These are all the document's hyperlink destinations with source and other properties\r");
    for (n in dests) $.writeln (n+"\t"+dests[n].toSource()+"\r**********************");
    
  • Text shows as truncated, that in Safari.

    I made a screenshot of two lines of text of description under two photo albums of Facebook. (Attached) This just started in the last 3-4 days and I have to open the page in Firefox or Chrome. Attached are their appearance. Strange thing is, this is just some lines. Others are perfect, on the same page where other Facebook albums appear in a grid of the photos section of the page.

    When I copy the lines blurred in text edit, they read very well. The two lines read:

    'Oil wax treated Pirate hats '.

    "Straw & Sea Grass Pirate hats.

    Latest version of Safari Version 9.1 (11601.5.17.1)

    on an iMac end of 2015

    Preferences show that the coding is the same "Western (ISO Latin 1)" he always used.

    Boot mode safe. https://support.Apple.com/kb/PH21875?locale=en_US

  • PDF with Images - layers of white text showing on picture - how to remove?

    Hi all, I was sent a multi-page pdf. When I go online (in firefox or chrome), the pdf file seems perfect. When I print the pdf and then open the PDF on my system, it shows the pdf with white text on any word. I opened the PDF in illustrator and saw immediately that there is a layer of white text. If I delete the layer, everything looks ok.

    The layer of fonts on all pages are presented. They are not necessary, how do I remove the layer of outline fonts in acrobat? Its a huge file with many pages.

    So firstly I would like to know what has caused this? What is an accessibility issue forced? Second how to remove all text white file so that I can see actually correctly?

    Difficulty.

    Open pdf file and using preflight. Clicked on the key and sought to "create different layers for text vector image. Since there are no layers. It will ask you to save the pdf file. Save, then open the layers and uncheck vector layers. Return to the preflight and key key and double-click on the content of the layer lay hidden and flatten visible layers. It will ask you to register.

    New file will now appear not text. Acrobat documents it's terrible!

  • Text on path is not indexed by spotlight

    Hello!

    Is there a solution how to make text on searchable way by Spotlight? For example when I create an ellipse in Illustrator, and then use Type on a path tool and create a new text on this ellipse and save the document, then there is no way I'm looking for this specific text using Spotlight.

    Thank you!

    Text on a path of a PDF file is just a bunch of distinct characters.

    So there is no words for the index.

  • Has anyone seen this error of conditional text: show/hide is incompatible?

    When I generate my book file, I get the following error in the log:

    Show/hide hidden is incompatible.

    Does anyone have any suggestions on how to troubleshoot and resolve this problem?

    Thank you

    Janie Gulley

    FrameMaker assumes that when you export a book, you would like conditional text to shown the same way across all documents in the book. It warns you if it is not so.

    "Show/hide hidden is incompatible" means that the hidden state is not configured the same throughout your book. For example, it can be displayed in some documents but hidden in others, or an indicator of Condition red in some texts, but blue in others.

    To resolve this problem:

    1. Select a document in your book where the conditional text settings are correct and open.
    2. Click on the book and type Ctrl + A to select all the documents in it.
    3. Choose file > import > Formats. Import the Formats dialog box appears:
      1. Click deselect all.
      2. Check the conditional text settings .
      3. Click import.

    All the documents in your book have now the same conditional text as your chosen document settings.

  • How to 'show' a static pseudo index using SQL statement select?

    Hello again,

    I have to post a time of 24 hours as an index. (00:00 - 23:00)
    It's easy, if data are available.

    But, if the data are not regularly exist on specific time (the time is not regular, IE: 00:00, 01:00, 05:00, 08:00, 10:00, 11:00, 23:00), then it of OK for a TABLE, but not for a CHART.

    Here is the story:

    I've written a SQL statement that can 'choose' what to display respectively the time available. The result will appear on the map: days or the time is used for the x-axis and the respective value on axis y.
    Example:
    + If the data consists of 'days' (ie: the last 5 days from now on, 16/07/2012, 17/07/2012, 18/07/2012, 19/07/2012, 20/07/2012), the chart will display these dates on the x-axis.
    + If the data consists of 'hours' (ie: only 1 day, hour 00:00 - 23:00), then the chart shows the hours on the x-axis.

    If the 'hours' are not regular, means: there is no data on the specific hours, the result of the query is not as regular, average: the value of X - axis "jumps" irregularly.

    Question:
    Is it possible to interrogate our own static value?
    for example:
    Select 'Hello' from dual-> result: 'Hello', 1 column, 1 line
    But how to display it into several lines, i.e.:

    Time
    *****
    0
    1
    2
    3
    4
    5
    ...
    ...
    23


    Note:
    the x-axis on the graph model can be customized only for 1 single mode, example: 'Days',
    but of course it will not appear correctly if the result of the query are "hours."
    This means: I have to find the workaround on the SQL query.


    DB: ORA 11


    Thank you and best regards.

    You can generate mulltiple rows if you use LEVEL and CONNECT BY:

    SQL> select level
      2  from   dual
      3  connect by level <= 10;
    
         LEVEL
    ----------
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
    
    10 rows selected.
    
    SQL>  select sysdate+level-1
      2  from   dual
      3   connect by level <= 10;
    
    SYSDATE+LEVEL-1
    -------------------
    20-07-2012 12:48:26
    21-07-2012 12:48:26
    22-07-2012 12:48:26
    23-07-2012 12:48:26
    24-07-2012 12:48:26
    25-07-2012 12:48:26
    26-07-2012 12:48:26
    27-07-2012 12:48:26
    28-07-2012 12:48:26
    29-07-2012 12:48:26
    
    10 rows selected.
    
    SQL> select to_char(trunc(sysdate), 'hh24')+level-1
      2  from  dual
      3  connect by level <= 24;
    
    TO_CHAR(TRUNC(SYSDATE),'HH24')+LEVEL-1
    --------------------------------------
                                         0
                                         1
                                         2
                                         3
                                         4
                                         5
                                         6
                                         7
                                         8
                                         9
                                        10
                                        11
                                        12
                                        13
                                        14
                                        15
                                        16
                                        17
                                        18
                                        19
                                        20
                                        21
                                        22
                                        23
    
    24 rows selected.
    
  • Photoshop CS6 - text showing above the text box

    Hey all,.

    I have a user who is currently using Photoshop CS6 on a Windows 7 Machine and when to manipulate a text box, he sees the text above where the actual text box. I tried to format the text in multiple fonts and sizes with the same result. I also created a new text box on a new layer with the same results.

    Any ideas on that? Is there an option im missing which could solve this problem?

    Thank you

    You can show us a screenshot please?

    What is your problem?

  • LR shows a HARD drive twice

    Hello

    The other day something strange happened after that I imported images; After I imported them, I could not locate in their usual place. They seemed to be in a different location. When I asked LR to show their actual physical location, they seemed to be physically located where I wanted them. And that's when I realized that LR was simply show these images as being somewhere else. Look at the picture below; See "Photos" twice? Well, that's the same hard drive. There isn't a single hdd 'Pictures', yet LR began the 'split '. I optimized the catalog, hoping that would fix it, but it stayed the same. No idea why this is happening?

    Thank you!

    LR 4.4

    OS X 10.6.8

    LR_catalog.jpg

    expee,

    I had this happen to me several times on LR 4.4 with the same version of Mac OS X you.  The hard drive in question was an external NAS device which had some questionable interactions with the OS at first, but was basically usable.  Unfortunately I never understood exactly what triggered the problem, and I have only a vague memory of how I solved it.

    I think what I did is something in this sense (but even once, I don't remember exactly)

    (1) using the Finder, rename the folder.  This causes her disappear in LR and display a question mark icon.

    (2) in the files of LR Panel is went to the other, 'main' copy of the hard drive, went to the parent folder and used the command 'synchronize' to search for the folder.  Or maybe I added the folder back another way.  I think this caused the folder reappears in the 'good' copy of the hard drive and the extra copy to disappear.

    (3) renamed the folder my original name.

    I'm sorry that I don't remember exactly what I did.  All I know is that I forced the record in a missing State temporarily.  Double/split HARD drive icons appear to be a bug any.  If I was a better citizen I must declare it at Adobe at the time!

  • problem with shaped text saved to hard disk

    I use a modified code of Macromedia to save the content of a text filed on the hard drive. See the code at the end.

    The code works fine, and a text file is saved in the specified hard disk location.

    The problem is that all the content of the text field appears in a very long line.

    The line breaks in the field text appears at all in the saved text file.

    for example:

    If the following is the content of the text filed on the stage:

    abcdef

    jhijklm

    nopqrst

    uvxwyz

    then the saved file is like: abcdefjhijklmnopqrstuvxwyz

    No line break happens! How can this be repaired?

    Thanks for your suggestions.

    HUMAN RESOURCES

    Here's the code *.

    ----------------------------------------------------------------------------------
    -This handler saves the contents of the field in a text file called "output.txt".
    -more written anything in the file "output.txt".
    ----------------------------------------------------------------------------------

    global myFile

    on mouseUp

    If objectP (myFile), then set myFile = 0 - Delete the instance if it already exists

    myFile = new (xtra "fileio") - create an instance of FileIO

    openFile (myFile, the moviePath & "output.txt", 0) - open the file with R/W access

    Delete (MyFile) - erases the file

    createFile (myFile, the moviePath & "output.txt) - creates the file again

    openFile (myFile, moviePath & "output.txt, 0)-open the file with R/W access

    mySaveString = member("input").text - puts the contents of the "input" field in the variable mySaveString

    writeString(myFile,mySaveString) - writes the text in the file

    closeFile(f) (myFile) - close the file

    myFile = 0 - has the instance

    end

    ******************

    If your problem is solved?

    In order to get the Manager/JS function to compile, go into a script member whose script is JavaScript. There is a drop down menu top left of the script pane that allows you to change that. For this reason, the JS function should go into a separate #movie with the script script

  • Text showing fields not when formed open after masked

    I developed an interactive form that prompts the user to provide an explanation if certain boxes are checked. For example, if a user gets "A", a text box (which is by default hidden) appears asking the user to explain their problem with "A". When the form is saved and sent by electronic mail, 'A' is checked, but the text box is hiddden. The user is held to uncheck and then recheck the check box to display the text. I don't want hidden text boxes to display in the original form, since there is no reason to have dedicated the empty space if the user has no concern to describe.

    How hidden text fields can show a saved form which is now reopened? (I wrote the code that says "hidden if it is disabled but visible if enabled.") Since the box is checked when opened after a backup, it should open with the display of text field.)

    Thanks in advance!

    Or... are a quick glance at the form of file/properties/Defaultsand make sure you that the button that sets the 'preserve Scripting of form when save changes' is set on automatically.

    Paul

Maybe you are looking for