magicm
@magicm
New Member
Joined: Feb 14, 2024
Topics: 8 / Replies: 546
Reply
RE: Identify illegal characters in objects or materials

If you simply want to replace/remove any non-alphanumeric characters (which I assume is what you’re after as you have ” :;’@#~[{}]|!£$%^&*()-=+\,&…

17 years ago
Forum
Reply
RE: Change text color in rollout?

If you just need another color (not another font/fontstyle) you could also use the hyperlink control. Set its .enabled property to false so it doesn’t…

17 years ago
Forum
Reply
RE: Checkbox to enable / dissable listboxes.

Since state is either true or false, you can set the .enabled properties of the listboxes directly using that value. The following code also checks/un…

17 years ago
Forum
Reply
RE: convert selected object(s) to Xrefs…

Changing the filename of an xref record shouldn’t add new objects to the scene. However, the first part of your code imports the xref with the origina…

17 years ago
Forum
Reply
RE: HiddenDosCommand fail, DosCommand works?

Apparently, if you specify the startpath parameter it does work: HiddenDOSCommand “rmdir C:\\doscmdtest” startpath:”C:\\” Out of curiosity, what is …

17 years ago
Forum
Reply
RE: maxscript does not run when rendering a sequence of frames

Where did you place the script? Is it a scripted controller or a callback script? Martijn

17 years ago
Forum
Reply
RE: setting the cursor in a script editor window

Or you could try creating a simple dialog with just a dotnet (rich) textfield docked in it. That should give you full control over the text (and even …

17 years ago
Forum
Reply
RE: dotNet timer scope within structs

You might also want to check out the System.IO.FileSystemWatcher class, which allows you to monitor file/folder changes. I’ve attached a simple exampl…

17 years ago
Forum
Reply
RE: bbox calculations

This code creates a bounding box (in this case for Teapot01) using another node’s transform matrix (in this case Box01). Haven’t done any thorough tes…

17 years ago
Forum
Reply
RE: selecting single images from ifl

Richard, you’ve obviously got too much time on your hands

17 years ago
Forum
Reply
RE: selecting single images from ifl

For what it’s worth, here’s a shorter version using .NET’s very convenient ReadAllLines method: ( — Collects the image sequence from an ifl file f…

17 years ago
Forum
Reply
RE: selecting single images from ifl

Here’s a function which will load the image sequence from an ifl file. The function returns an array of filenames (including path) so it should be eas…

17 years ago
Forum
Reply
RE: dotNet: textBox on return pressed event?

b.GetEvent(“Click”).GetRaiseMethod()[/b] should return a MethodInfo object. This object in turn has an Invoke method (MethodBase.Invoke Method (Object…

17 years ago
Forum
Reply
RE: dotNet: textBox on return pressed event?

I forgot to add to my initial reply that the AcceptsTab property needs to be set to true as well for this to work. Not sure why… Martijn

17 years ago
Forum
Reply
RE: dotNet: textBox on return pressed event?

martroyx: That a very good example, it may come handy when I’ll be working on my dotneteditor :applause: but here’s what I really want : …let say …

17 years ago
Forum
Page 7 / 37