Confusion about Counter max limit (cannot go above 100)
-
I am using a Counter actor to drive the subtitles (on the infamous Augmented Theatre App). The subtitle technician presses keyboard key, which increments the counter value, which then is sent to a javascript actor, who advances text to the next line, which goes into the OSC Multi Transmit. However, the Counter stops at 100 (so I can only show first 100 lines in the text). I was hoping to let it go above 100 by adjusting the MAX value in the "maximum", "cur value", "output" fields, but to no avail.
Is it possible to increase the maximum count the Counter produces above 100 at all?Thanks.-8 -
You simply need to edit the 100 -> your larger number.Leave the scaling min max, as MIN and MAX. -
-
@DusX and @jhoepffner –– Thanks guys, your solutions work.
--8 -
You was right, I was directly to the inside limits -
@jhoepffner What is the global variable problem?
-
I send you my try to do a counter with Javascript, the problem is I dont find the way to keep the value between two calculation. In my test I do it externally with Isadora Global Values actor.Jacques -
with this js you have an initialize option and the value stays in the java script actoryou loose the option to change the current value on the fly, but with some more if clauses and a buffer this could be implemented as wellbest clemens---------------function main(){var i = arguments[0]; //initialize valuemain = function(){var j = arguments[1]; // 0-1 to addvar k = arguments[2]; // 0-1 to subvar out = [];if (j == 1){i = i + 1;}if (k == 1){i = i - 1;}out [0] = i;return out;}}---------- -
As @m_theater has written. Returning a new main() function is a great method. You can also define vars before the main() and they will be global in scope. I have written a little something on this here: http://www.dusxproductions.com/blog/pro-tip-jstips-init/
-
Thank you for the javascript lesson, it works.