Counting characters
-
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 -
This is very easy to do in V2 using Javascript.
What version are you working with? -
@Maximortal if you are using version 1
have a look in the chamsys actorhttp://troikatronix.com/troikatronixforum/discussion/1457/isadora-chamsys-magicq#Item_2in the "chamsys engine" is a data length calculatorwhich is basically doing what you want …Text Wrapper -> Text Parser -> Counter -> Reset after Analysingbestclemens -
@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 -
@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 -
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 ? -
new tutorials are coming for the public release... a whole slew of them :)
-
Great, cant wait!