I love regular expressions… but the day after I use them, I forget all the syntax. So I try to use the good old-school wildcards.
However, using Regex for this particular task is clearly redundant and, furthermore, it is slower compared to the built-in MatchPattern function.
The answer is no… If you make your own IK/FK, Biped ceases to be “Biped”. Biped uses its own controllers, which is impossible and makes no sense to re…
Player_1: Is it because of the “mapped” in the begining of the ‘fn’ ? Yes. See the MaxScript Help: Mapped Functions
or … mapped fn resetVertColor obj color = ( ops = case (classof obj) of ( editable_mesh: meshop editable_poly: polyop ) if ops != undefine…
Super! Thank you. I was sure I was missing something very simple
Serejah: looks really good. must be very convenient to use for anyone who is too lazy to switch to vscode or similar. can the VS Code be configur…
Performance considerations The Split methods allocate memory for the returned array object and a String object for each array element. If your applica…
see my example… put OK before end ( … ok )
with public string[] Split (char[]? separator, int count); you can specify the maximum number of substrings (what I do). It means the algorithm stops…
My guess is that the difference might be more significant if we use longer lines, because the Split method is the weak link and slows things down the …
public static string GetFirstWord(string line) { int i = 0; while (i < line.Length && char.IsWhiteSpace(line, i)) { i++; } i…
Serejah: var word = line.Trim().Split(null, 2)[0].ToLower(); TrimStart of course var word = line.TrimStart().Split(null, 2)[0].ToLower();
Serejah: well, I doubt that this test file that you provided is a good test case to ensure that the solution is bug-free. change this line like tha…