Isadora 4.5 Has Arrived: Unleashing the Power of Interactive Audio!
-
Hello Isadoramongers, quick test of a feature request: Caps Lock input for the Text Draw actor. (I never needed it before, but now there's the Speech to Text actor to play around with, it would be lovely to be able to dynamically control whether the text generated is in lower case or capitals)
-
@dbini said:
dynamically control whether the text generated is in lower case or capitals
This can easily be done via Javascript.
// iz_input 1 "text input"
// iz_input 2 "format mode"
// iz_output 1 "text output" /*
INPUT ORDER
arguments[0] = incoming text
arguments[1] = format mode (Integer) FORMAT MODES
1 = unchanged
2 = UPPERCASE
3 = lowercase OUTPUT ORDER
The single returned value is sent to output 1.
*/ function main()
{
var textInput = String(arguments[0]);
var formatMode = Math.round(arguments[1]); var outputText = textInput; if (formatMode === 2)
{
outputText = textInput.toUpperCase();
}
else if (formatMode === 3)
{
outputText = textInput.toLowerCase();
} // View these messages using Windows > Show Monitor.
print("Input: " + textInput + "\n");
print("Mode: " + formatMode + "\n");
print("Output: " + outputText + "\n"); return [outputText];
}