biddle
@biddle
New Member
Joined: Feb 15, 2024
Topics: 3 / Replies: 128
Reply
RE: Macroscripts category & names lists

It looks like macros.list() prints the info you need to the Listener, then returns “OK”. You can redirect that listing into a stringstream and then p…

15 years ago
Forum
Reply
RE: dotNet.addEventHandler cannot access struct members?

Yup. Agreed. In a perfect world they shouldn鈥檛. This is a specific use of an explicit global variable that is only there to work around what I think i…

15 years ago
Forum
Reply
RE: dotNet.addEventHandler cannot access struct members?

Lately, I鈥檝e taken to adding a instance to the global namespace with whenever I create a singleton-like struct. I make sure to use the 鈥?:鈥?prefix in …

15 years ago
Forum
Reply
RE: Signed short

Oh. I think I see what you are really after. Looks like you need to read it unsigned, swap, then sign extend it yourself. fn ReadBEShort fstream = ( …

15 years ago
Forum
Reply
RE: Signed short

Appears to work for me. Perhaps your file open isn’t correct? fn ReadBEShort fstream = ( short = readshort fstream #signed short = bit.swapBytes sho…

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

what is the snippet you are using to read a range?

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

hm. you could write your own shim assembly to do the parameter conversion and fwd the call to matlab. Starting to grasp at straws. Did you try safe a…

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

Have you verified that you can call the OLE object WITHOUT using max at all? Use python, or VB, or Excel …whatever it takes to make sure that you can…

15 years ago
Forum
Reply
RE: Help needed with OLE/COM problem

I think you are sending over 1-D safearrays and it’s looking for 2-D. I don’t have access to Matlab, so I can’t actually check this out. I found a sn…

15 years ago
Forum
Reply
RE: [HELP] Normal of a spline ?

As Denis pointed out, Maxscript will provide you with the tangent T to the curve at any point, which gives you the plane perpendicular to the curve at…

15 years ago
Forum
Topic
Forum
Replies: 1
Views: 33
Reply
RE: Using strings as variable names?

Perhaps “getNodeByName” is what you are looking for? sharkname = “shark” teapot name:sharkname troutname = “trout” sphere name:troutname fi…

15 years ago
Forum
Reply
RE: Value compare – close enough?

<off topic, search related> When you are pretty sure there is something in MXS lexicon that you need, and the help index is no help, ‘apropos’ …

15 years ago
Forum
Reply
RE: Undocumented Maxscript Unwrap functions

Those methods show up if you run ‘showinterfaces (Unwrap_UVW())’ I diffed the results from Max2009 and Max2010 and found two other new entries – a ge…

15 years ago
Forum
Reply
RE: Function for getting the Hwnd of a viewport

Crazy, because it is so simple in the SDK: ::GetCOREInterface()->GetActiveViewport()->GetHWND()

15 years ago
Forum
Page 5 / 9