miauu
@miauu
New Member
Joined: Feb 14, 2024
Topics: 122 / Replies: 1116
Topic
Forum
Replies: 11
Views: 97
Reply
RE: Controlling two checkboxes against each other

try destroyDialog gui catch() rollout gui “checkboxes” ( checkbox ckbx0 “checkbox 0” checked:true align:#left orient:#vertical across:2 checkbox …

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

I will test this: with this fix:

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

This is the correct way to get the data? format “str:%\n” tp.pairs[2].lines.item[1] The line numbers are not collected, right?

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

Thank you. Will test it. Here is my attempt(does not work):

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

Can the dictionary in C# be constructed with 3 elements 1- word 2- line in which the word is found 3- text of that line. Right now the code counts ho…

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

Thank you. This (Array.IndexOf(words, word) > -1) is the c# equivalent of findItem.

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

Now I know how to use a file and a string. Thank you. Only thing to solve is to make the code to collect only the passed words. If I pass “kappa” t…

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

Thank you, Denis! The fastest time I have is 58, the slowest is 80. The code collect all “first” words on all lines. I have edited the 50000LinesOfTe…

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

Serejah, on my PC your python code is executed for ~120 ms when I collect the line numbers and the text of the lines. With your original code the time…

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

Thank you. If I find a way to use the python code inside maxscript and if the python code is faster than your c# code then I definitely will change t…

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

I have to check it against this: import os import sys import time txtFile = “H:\E_Desktop\M1\50000LinesOfText.txt” _alpha = “alpha” _beta = “beta”…

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

denisT: i have for “kappa*”: count:1866 time:54 heap:10019252L do you need for many patterns? I have: time:88 heap:10017612L kappaArr: 1860 – …

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

It is the same as this one: Fast search through text file What I have only for finding the Kappa: time:76 heap:9919600L kappaArr: 338

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

Denis, I can’t send you the text file, sorry. But the string, generated by the maxscript code should be enough for performance testing. Serejah is usi…

2 years ago
Forum
Page 3 / 83