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…
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…
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…
Take a look at “try expression” or “try/catch” in the MaxScript helpfile.
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 …
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…
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…
You mean stuff like this? >>> 18.49 * 100 1848.9999999999998 >>> 0.1 0.10000000000000001 Most languages (machines, actually) work …
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…
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…
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…
Can you paste in the exact error you’re seeing? And what maxscript line is triggering it?
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…
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 …