• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    [ANSWERED] [LOGGED] Letter by Letter Read

    How To... ?
    5
    18
    556
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JuriaanJ
      Juriaan Tech Staff
      last edited by Juriaan

      For example, this JavaScript code allows you to split a string. Let's say we have "Hello world", this will give the following output.
      1: H, 2: e, 3: l, 4: l, 5: o, 6: space, 7: w, 8: o, 9: r, 10: l, 11: d

      function main()
      {
          return Array.from(arguments[0]);
      }

      But like DusX said, give us an example on what you wish so that we give you a hand 😉

      Isadora 3.1.1, Dell XPS 17 9710, Windows 10
      Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
      Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

      craigwC 1 Reply Last reply Reply Quote 1
      • craigwC
        craigw @Juriaan
        last edited by

        @juriaan

        Thanks so much for the help and offer to help.

        I'll compile my short list.

        I think it's time to sit down an learn JS.

        Thanks

        Mac OS Ventura 2017 MacPro, 32g Ram ,AMD FirePro D700 6144 MB. Isadora v3.2.6 Los Angeles CA

        1 Reply Last reply Reply Quote 0
        • WolandW
          Woland Tech Staff
          last edited by

          There's also the Text Chopper actor: https://recordit.co/OJ47qGiClS

          (PS: You may find this User Actor helpful: Javascript String Length)

          TroikaTronix Technical Support
          New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
          TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
          TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

          | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

          1 Reply Last reply Reply Quote 0
          • craigwC
            craigw
            last edited by

            Hi, The "readtextfromfile" actor worked in 3.0.8 but I can't get it to work in 3.1.1.

            test-read-v1_3-v3.1.1.izz


            Here's what I'm looking for:

            My file is named words.txt  6 lines of 5 letter words. Someone will type in words live line by line, so I'll need to be about to update the file read as I go.

            Next is the wish list:

            If I make the file 7 lines instead of 6 and line 1 the top word is the secret word that we're trying to match,I would like a letter comparator to compare letters of lines 2-7 to be able to compare letters to line 1.

            Sorry it's hard to explain a picture is so much easier.

            Mac OS Ventura 2017 MacPro, 32g Ram ,AMD FirePro D700 6144 MB. Isadora v3.2.6 Los Angeles CA

            WolandW DusXD laurentRL 3 Replies Last reply Reply Quote 0
            • WolandW
              Woland Tech Staff @craigw
              last edited by Woland

              @craigw said:

              If I make the file 7 lines instead of 6 and line 1 the top word is the secret word that we're trying to match,I would like a letter comparator to compare letters of lines 2-7 to be able to compare letters to line 1.

               How's this? text-comparison.izz

              (Note: this just handles combining the letter from each line into a single word and then comparing that word to a pre-defined word. I didn't specifically implement what you needed in your file, you'll have to transition over whichever method you like best into your file.) 

              TroikaTronix Technical Support
              New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
              TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
              TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

              | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

              craigwC 1 Reply Last reply Reply Quote 0
              • craigwC
                craigw @Woland
                last edited by

                @woland

                Thanks a lot, I'll try it.

                Mac OS Ventura 2017 MacPro, 32g Ram ,AMD FirePro D700 6144 MB. Isadora v3.2.6 Los Angeles CA

                1 Reply Last reply Reply Quote 0
                • DusXD
                  DusX Tech Staff @craigw
                  last edited by DusX

                  @craigw said:

                  so I'll need to be about to update the file read as I go

                   As you know this can be done with Data Array, and for a simple list of words may be your easiest method of loading the data, although you can also use the Read() function in Javascript. (tutorial)
                  Once you have the text data, Javascript can handle comparing each letter and keeping a count or what ever you need..?
                  I'm still unclear what exactly you need, but it does sounds like something that is much easier to workout using Javascript.

                  Troikatronix Technical Support

                  • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                  • Isadora Add-ons: https://troikatronix.com/add-ons/
                  • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                  Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                  1 Reply Last reply Reply Quote 0
                  • laurentRL
                    laurentR @craigw
                    last edited by

                    @craigw said:

                    Hi, The "readtextfromfile" actor worked in 3.0.8 but I can't get it to work in 3.1.1.

                     Strange cause it works with me on 3.1.1, I am actually working with it on a project right now... ( On Mojave )

                    MBP 15' 2019 & MBP 13' 2015 - OSX10.14 & MP 2.8Ghz QC Xeon + GTX660 - OSX10.12 / Isadora 2.6.1/3.2 - Located France

                    1 Reply Last reply Reply Quote 0
                    • craigwC
                      craigw
                      last edited by

                      Data array with the text chopper works great for me.

                      Sorry, One last question, I'm trying to type a file path using the "Edit Text" box. When I try to type a " ." period for the .txt  it doesn't show it.

                      It'll read it though.

                      Mac OS Ventura 2017 MacPro, 32g Ram ,AMD FirePro D700 6144 MB. Isadora v3.2.6 Los Angeles CA

                      DusXD 1 Reply Last reply Reply Quote 0
                      • DusXD
                        DusX Tech Staff @craigw
                        last edited by DusX

                        @craigw

                        I did a quick test on PC, then on macOS Catalina.
                        Both have no issue displaying the '.' for me with the default font. (I increased the size)

                        Did you perhaps change fonts to something unexpected?

                        Troikatronix Technical Support

                        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                        • Isadora Add-ons: https://troikatronix.com/add-ons/
                        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                        Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                        1 Reply Last reply Reply Quote 0
                        • craigwC
                          craigw
                          last edited by

                          Thanks, Looks like the "Show Value of Linked Properties" may have been the culprit.

                          Mac OS Ventura 2017 MacPro, 32g Ram ,AMD FirePro D700 6144 MB. Isadora v3.2.6 Los Angeles CA

                          DusXD 1 Reply Last reply Reply Quote 0
                          • DusXD
                            DusX Tech Staff @craigw
                            last edited by

                            @craigw said:

                            Looks like the "Show Value of Linked Properties" may have been the culprit.

                             How is that? Does the '.' not display for your when 'Show Value of Linked Properties' is selected?

                            Troikatronix Technical Support

                            • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                            • Isadora Add-ons: https://troikatronix.com/add-ons/
                            • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                            Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                            WolandW 1 Reply Last reply Reply Quote 0
                            • WolandW
                              Woland Tech Staff @DusX
                              last edited by

                              @dusx said:

                               How is that? Does the '.' not display for your when 'Show Value of Linked Properties' is selected?

                               Yes, this reminded me that I'd seen this before. I searched the database for a report but there wasn't one, so I logged it as a new entry.

                              TroikaTronix Technical Support
                              New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                              TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                              TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                              | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                              DusXD 1 Reply Last reply Reply Quote 0
                              • DusXD
                                DusX Tech Staff @Woland
                                last edited by

                                The issue with 'periods' being blocked from entry is due to File Path input fields having some error checking implemented, and the nature of the 'Show Value of Linked Properties' feature.
                                It is possible to enter the text indirectly via a trigger text actor (or other text actors). 
                                We are looking into modifying this behavior for a future version.

                                Troikatronix Technical Support

                                • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                                • Isadora Add-ons: https://troikatronix.com/add-ons/
                                • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                                Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                                1 Reply Last reply Reply Quote 1
                                • First post
                                  Last post