denisT
@denist
New Member
Joined: Feb 14, 2024
Topics: 218 / Replies: 11426
Reply
RE: Need help with max script

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.

1 year ago
Forum
Reply
RE: Need help with max script

However, using Regex for this particular task is clearly redundant and, furthermore, it is slower compared to the built-in MatchPattern function.

1 year ago
Forum
Reply
RE: Biped IK-FK

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…

2 years ago
Forum
Reply
RE: Change or Convert Vertex Color of object (while keep the object as same type ex. Editable poly or Editable mesh)

Player_1: Is it because of the “mapped” in the begining of the ‘fn’ ? Yes. See the MaxScript Help: Mapped Functions

2 years ago
Forum
Reply
RE: Change or Convert Vertex Color of object (while keep the object as same type ex. Editable poly or Editable mesh)

or … mapped fn resetVertColor obj color = ( ops = case (classof obj) of ( editable_mesh: meshop editable_poly: polyop ) if ops != undefine…

2 years ago
Forum
Reply
RE: MXS DotNet > System.Reflection.Pointer to System.IntPtr

Super! Thank you. I was sure I was missing something very simple

2 years ago
Forum
Topic
Reply
RE: Fast search through text file

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…

2 years ago
Forum
Reply
RE: Fast search through text file

Performance considerations The Split methods allocate memory for the returned array object and a String object for each array element. If your applica…

2 years ago
Forum
Reply
RE: Fast search through text file

see my example… put OK before end ( … ok )

2 years ago
Forum
Reply
RE: Fast search through text file

with public string[] Split (char[]? separator, int count); you can specify the maximum number of substrings (what I do). It means the algorithm stops…

2 years ago
Forum
Reply
RE: Fast search through text file

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 …

2 years ago
Forum
Reply
RE: Fast search through text file

public static string GetFirstWord(string line) { int i = 0; while (i < line.Length && char.IsWhiteSpace(line, i)) { i++; } i…

2 years ago
Forum
Reply
RE: Fast search through text file

Serejah: var word = line.Trim().Split(null, 2)[0].ToLower(); TrimStart of course var word = line.TrimStart().Split(null, 2)[0].ToLower();

2 years ago
Forum
Reply
RE: Fast search through text file

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…

2 years ago
Forum
Page 7 / 777