Sure! import pythoncom import sys import win32com.storagecon FMTID_UserDefinedProperties = ‘{F29F85E0-4FF9-1068-AB91-08002B27B3D9}’ FMTID_CustomDefi…
Has anyone successfully read the Max thumbnail using Python with the win32com and pythoncon modules? I can read the IPropertyStorageSet stuff off of a…
If I execute Neil’s sample script I get to 1327 recursions before Max crashes. I noticed that Neil is passing in theValue each time by value, which me…
$ shouldn’t be used in scripts. It’s a great shorthand for prototyping in the Listener but it can cause problems elsewhere, as you’ve seen. A better a…
for MyMesh in selection do MyMesh.material = undefined
A very good point, and a simple addtion to the code. I think I’ll go add that now. Thanks Bobo.
A solution I wrote last week for a similar problem isn’t quite as robust as Bobo’s solution but works very well. It’s based on the count of the number…
You’re not trimming the increment counter off of the filename before you add on the new counter.
The SafeArrayWrapper Class topic in the help file has sample code for talking to a SQL database and lists OLE DB and ODBC connection strings for quite…
There’s also the difference in that the SDK works at a much lower level in Max than MaxScript. For many MaxScript methods you’re essentially locked in…
They’re escape characters used inside of strings (text within double quotes) newline \r – return tab \ – ” – ” The last one is a bit confusing….
Here’s a script that will out put the formatted information to a file named “SceneObjects.xml” on your c:\ drive. Edit the first line as necessary to …
What do you have your reference coordinate system set to on the main toolbar? I have mine set to the default “view” and I get the same transform resul…
MAXScripts DOSCommand() will always show the CMD popup. There’s no way to supress it. There are a few MAXScript extensions that provide a DOSCommand()…