vScourge
@vscourge
New Member
Joined: Feb 14, 2024
Topics: 2 / Replies: 59
Reply
RE: Python + MXS

See my post above. Max does not register any COM servers for itself by default, you have to tell it to do that. The registerPythonCom.ms script I me…

15 years ago
Forum
Reply
RE: Python + MXS

Try creating a COM server inside your Python app, and connecting to it from MaxScript (with createOLEObject). There’s some details on making Python C…

15 years ago
Forum
Reply
RE: Simple Script help

Here’s another approach, but by using uniqueName, you’re guaranteed to have no name conflicts in the end. Also doesn’t change your selection, if that…

16 years ago
Forum
Reply
RE: Intercepting errors in MaxScript

Take a look at “try expression” or “try/catch” in the MaxScript helpfile.

16 years ago
Forum
Reply
RE: Thread Synchronisation

The first item just means when your OLE object falls out of scope and is garbage collected by Max, that OLE interface can no longer be used until you …

16 years ago
Forum
Reply
RE: Thread Synchronisation

A file-free option could be to use COM. Create a simple OLE/COM server in MaxScript, then connect to it in your VBScript and send the values in every…

16 years ago
Forum
Reply
RE: Python + MXS

Are you sure the Python code is fully executing? If you paste that Python code into IDLE shell exactly as-is from that post and hit Enter it probably…

16 years ago
Forum
Reply
RE: Python + MXS

You mean stuff like this? >>> 18.49 * 100 1848.9999999999998 >>> 0.1 0.10000000000000001 Most languages (machines, actually) work …

16 years ago
Forum
Reply
RE: Python + MXS

Yes, you’ll get arrays back as tuples, as long as they contain data types supported by COM, or you put a convert-to-string function in front of it lik…

16 years ago
Forum
Reply
16 years ago
Forum
Reply
RE: Python + MXS

If you’re using COM to connect to Max using Python, you’re going to be limited to the data types that COM supports for return values. Offhand, I belie…

16 years ago
Forum
Reply
RE: Python + MXS

In my experience they don’t behave differently. Both of those commands open their respective app on my machines. I couldn’t tell you why, perhaps yo…

16 years ago
Forum
Reply
RE: Python + MXS

Can you paste in the exact error you’re seeing? And what maxscript line is triggering it?

16 years ago
Forum
Reply
RE: Python + MXS

See my reply above, dated 10-15-2008, 08:00 PM. Specifically the maxscript file I mentioned. It should help you make Max register itself as a COM serv…

16 years ago
Forum
Reply
RE: Scripted material with missing bitmaps

Does that error appear because that texture no longer exists at that location? If so, try/catch should do the trick, although the “proper” fix is to …

16 years ago
Forum
Page 1 / 5