Serejah
@serejah
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 1221
Reply
RE: An old question

try to convert it using CustomMarshalerSimpleSpline from autodesk.max.wrappers.dll I believe there should be examples of how to use it stack…

2 years ago
Forum
Reply
RE: An old question

According to sdk docs line derives from SimpleSpline, so in theory you should be able to cast/convert to it. In c# you can’t be sure whether it will w…

2 years ago
Forum
Reply
RE: Output colored text to the listener

JimmyVera: I’m pretty sure this isn’t possible, but I thought I’d give it a go as I’ve been surprised before solution изображение.png697x131 10…

2 years ago
Forum
Reply
RE: Output colored text to the listener

Sure. You simply hide that output pane control of mxseditor and create a WinForm control with the richtextbox. See MaxForm example in mxs reference Bu…

2 years ago
Forum
Reply
RE: Output colored text to the listener

Each printed character in the listener/mxseditor has a style index assigned that defines which style is used to show it on the screen. Afaik you can’t…

2 years ago
Forum
Reply
RE: Output colored text to the listener

I used this to convert colors to integer representation fn colorAsInt clr = ((int clr.r) + (bit.shift (int clr.g) 8) + (bit.shift (int clr.b) 16))

2 years ago
Forum
Reply
RE: Output colored text to the listener

Actually it is possible to recolorize the output, but it could be quite slow if it is a lot of text Can’t share the code cause it depends on my c# dll…

2 years ago
Forum
Reply
RE: Apply unique material to instances even if propagate material to instance in turned on

InstanceMgr.autoMtlPropagation = false delete objects gc() t = Teapot() r = Standardmaterial diffuse:red g = Standardmaterial diffuse:green b = Stan…

2 years ago
Forum
Reply
RE: Retrieving open tabs in the Script Editor

Did you check existing editor methods ? Editor_GetDocumentFilename gives you the filename which you can use to open the script using Editor_EditFile…

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

oh indeed, according to shape class hierarchy it is not the case seems like it isn’t very useful in your case seems like updateShape method calls so…

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

3Dali: I also did not find maxscript updatedshape replacement in SDK there’s UpdateShape method in SimpleSpline class

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

Perhaps you should store the original Obj (IObject) pre converted to SplineShape in order to later restore it from inside RestoreObj::Restore method. …

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

I doubt max can magically restore the previous state of a node given only the handle to that node. It would require it to store a full copy of the nod…

2 years ago
Forum
Reply
RE: Maxscript access to Sub-Object in motion panel

I did only a couple of paid projects for all my scripting career. Tech Artist vacancies require too many skills that I wasn’t ever interested so I nev…

2 years ago
Forum
Page 9 / 84