Serejah
@serejah
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 1221
Reply
RE: How to find a string or binary data from a stream buffer?

Can’t tell you anything about performance, since I tested it only on your example files. How big your files can be? I’d go a compiled assembly way wit…

7 years ago
Forum
Reply
RE: How to find a string or binary data from a stream buffer?

using StringStream is not an optimal solution for a bigger files ( f = fopen @”c:\binary_03.txt” “rb” fseek f 0 #seek_end …

7 years ago
Forum
Reply
RE: How to find a string or binary data from a stream buffer?

rb – read-only binary – file must exist change mode to “rb” works fine with your file

7 years ago
Forum
Reply
RE: How to find a string or binary data from a stream buffer?

f = openFile @”C:\binary.txt” mode:”r” contains123 = ( skipToString f “123” ) != undefined close f

7 years ago
Forum
Reply
RE: How to find a string or binary data from a stream buffer?

Did you try skipToString <fileStream> <string>? link: FileStream values

7 years ago
Forum
Reply
RE: setFocus by current Axis

Thanks, Andres. There’s also commandMode change callback left and then my all-in-one transform type-in complete.

7 years ago
Forum
Reply
RE: setFocus by current Axis

and a little mxs wrap ( global axisChangeOps fn compileAxisChangeOps forceRecompile:false = ( if forceRecompile or not iskindo…

7 years ago
Forum
Reply
RE: setFocus by current Axis

I found a c# way of doing it. using Autodesk.Max; namespace axisChangeOps{ public class axisCallback : Autodesk.Max.Plugins.AxisChangeCallback…

7 years ago
Forum
Reply
RE: setFocus by current Axis

I don’t like using timers for a lasting tasks like that, but if it can run in background thread and don’t leak memory that could be a solution. I trie…

7 years ago
Forum
Topic
Forum
Replies: 9
Views: 24
Reply
RE: Z axis face scanning

search forum for some example of RayMeshGridIntersect

7 years ago
Forum
Reply
RE: Get Face Clusters / bitArrays? (EditablePoly)

Yeah, that second is a masterpiece

7 years ago
Forum
Reply
RE: Get Face Clusters / bitArrays? (EditablePoly)

Here’s modified version of Jorge’s GetAllMeshElements fn getPolyFaceClusters node faces = ( local verts = #() local processed = #{} local…

7 years ago
Forum
Reply
RE: Get Face Clusters / bitArrays? (EditablePoly)

I bet it could be greatly optimized by caching polyop.getFaceVerts & polyop.getFacesUsingVert delete objects — t = Teapot segments:6 t = GeoSp…

7 years ago
Forum
Reply
RE: Maxscript: Change name of a newly created dummy

try (destroydialog X ) catch () rollout X “” ( checkbutton cb “superDummy” checkbutton cb2 “extraDummy” checkbutton cb3 “megaDummy” …

7 years ago
Forum
Page 66 / 84