The MoI TEXT command can be used to add a number to the Dial, say number = 60. This is a TEXT 60, but a numerical value of a FOR Loop index would be the initial term in a new script, (incremented).
To add a TEXT 60 with the MoI TEXT command, (without user entry), I altered 2 lines of the Text.htm file, and commented out the normal default of text 'MoI'
code:
function Initialize()
{
// Brian's Test Code, 2 lines of code added to MoI TEXT command .htm file, and one line of code deleted, as a test.
var i = 60;
var InitText = i.toString();
// var InitText = 'MoI'; //This is the original TEXT command line, commented out as a test.<<<<<<<<<
try { InitText = moi.command.getOption( 'Text.htmDefaultText' ); }
catch(e) { }
text.value = InitText;
if ( bold.value )
text.style.fontWeight = 'bold';
if ( italic.value )
text.style.fontStyle = 'italic';
}
Saved the altered Text.htm and Text.js files as TextRadial01, and added to the add-on scripts commands in MoI Appdata.
Running the altered script converts numerical index (i) to a text number (60 in the test case.)
(The altered code is just a temporary learning device, to learn how to turn 60 numeric into 60 text. I guess it is ASCII?, and is to be discarded.)
The MoI Text command can be used to add the initial Number to the 12 O'Clock position, and determine the desired Text factory defaults, for Font, Style, Size, Solid vs Surface, Centered, etc.
So a script could be written with a For loop increment from 1 to 60, with repetitive calls to the Text Factory, with the desired values of the previous sentence, and the 59 rotations mentioned previously.
- Brian
It is basic coding, but I find it hard, as an amateur programmer.