• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Counting characters

    How To... ?
    5
    8
    1620
    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.
    • Maximortal
      Maximortal last edited by

      Hi,

      I need some kind of actor able to count number of characters incoming to his imput (from a text actor or a control is the same). Any ideas how to?
      Thanks in advance
      Reply Quote 0
        1 Reply Last reply
      • DusX
        DusX Tech Staff last edited by

        This is very easy to do in V2 using Javascript.
        What version are you working with?

        Reply Quote 0
          1 Reply Last reply
        • m_theater
          m_theater last edited by

          @Maximortal if you are using version 1

          have a look in the chamsys actor
          http://troikatronix.com/troikatronixforum/discussion/1457/isadora-chamsys-magicq#Item_2
          in the "chamsys engine" is a data length calculator
          which is basically doing what you want …
          Text Wrapper -> Text Parser -> Counter -> Reset after Analysing
          best
          clemens
          Reply Quote 0
            1 Reply Last reply
          • Maximortal
            Maximortal last edited by

            @DusX I'm on 2.04b win  unfortunately my classes of java script was many time ago! I do not remember anything...shame on me!!!!

            @m_theater thanks I'll take a look soon 
            Reply Quote 0
              1 Reply Last reply
            • DusX
              DusX Tech Staff last edited by

              @Maximortal 
              much power to be had with Javascript in V2.

              I suggest going thru the tutorial here: http://troikatronix.com/support/kb/getting-started-with-javascript/

              and take a quick look at this string property: http://www.w3schools.com/jsref/jsref_length_string.asp
              Reply Quote 0
                1 Reply Last reply
              • m_theater
                m_theater last edited by

                @DusX,

                wow that makes the game much easier and probably faster …
                someone willing to write a tutorial on filtering / replacing values with js in isadora V2 ?
                Reply Quote 0
                  1 Reply Last reply
                • primaldivine
                  primaldivine last edited by

                  new tutorials are coming for the public release... a whole slew of them :)

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

                    Great, cant wait!

                    Reply Quote 0
                      1 Reply Last reply