Serejah
@serejah
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 1221
Reply
RE: "Pointer" to an array/variable?

Dereferencing Operator image.png873x170 10.6 KB

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

I’ve posted updated version above, here’s the link: you don’t really have to split it to collect the data

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

just put all of your c# code to dotnetfiddle and try to run, it will show you places where the syntax isn’t correct and btw, why not using single mult…

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

StringStream:”Error:CS0116 Line:1 Column:58 A namespace cannot directly contain members such as fields or methods you can always read the reason beh…

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

The thing is that it shouldn’t compile at all unless you commented out everything inside ProcessDocument method. This one should compile: add this t…

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

miauu: With my zero C# knowledge this is not compiled at all: no surprise, in order to iterate using foreach you need to split the doc into lines…

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

miauu: Still not as fast as I need. If you want performance try moving loop iteration to c# Make a dynamically compiled c# dll with a class and …

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

Hard to help you without 3dsmax running, but here’s a bit optimized c# version, 40-50ms Try porting it to mxs, it shouldn’t be complicated add regex…

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

look here, I’ve ported the code to do a quick test pure c# version should do the job Multiline: 5652 Time:293 ms. – could be improved with RegexOp…

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

in this case you probably better iterating over the lines array so the line number is always known although SO has some answers for similar task upd …

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

fastest way would be to use regex in multiline mode so you don’t have to split the text into separate lines. if you have to iterate over each line any…

2 years ago
Forum
Reply
RE: How to read animation data from binary file .octprx through maxscript?

denisT: So the problem is now solved? yes, we ended up with this fn getFrameCount prxFile = ( f = fopen prxFile “rb” fseek f 12 #seek_set count …

2 years ago
Forum
Reply
RE: How to read animation data from binary file .octprx through maxscript?

frame count is stored at the 13th byte from the beginning of the file

2 years ago
Forum
Reply
RE: How to read animation data from binary file .octprx through maxscript?

GSystems: Most likely somewhere there should be just the number “101” with a binding to the text “Frame count:” (this can be a property name). if…

2 years ago
Forum
Reply
RE: How to read animation data from binary file .octprx through maxscript?

ha, this file contains exactly 101 patterns of C0 02 00 00 02 00 but perhaps you need to use a longer pattern to exclude false-positive matches resu…

2 years ago
Forum
Page 5 / 84