ndufort
@ndufort
New Member
Joined: Feb 15, 2024
Topics: 0 / Replies: 14
Reply
RE: Python + MXS

labbejason: I’m trying to do the first example to create a box from Python. I think the script is failing when it reaches to this point: win32com.cl…

16 years ago
Forum
Reply
RE: Python + MXS

This is a nice idea, and I really hope people will go this way. While not a Max user, I have tried to talk people into using Python with Max at work….

16 years ago
Forum
Reply
RE: Python + MXS

RyanT: Ok got it to work. Step 2: Download and install pywin32 which has the win32com python module in it here: Step 3: Make sure to download the…

16 years ago
Forum
Reply
RE: Python + MXS

toRigOrNotToRig: [b] It’s a copy of the code from the first post with the comments removed: The Max part, which when run, returns “OK”:[/b] [/…

16 years ago
Forum
Reply
RE: Python + MXS

Could you show us the Max and Python code you are running? That could help us see what you might be missing. You mentioned being new to Python. The…

16 years ago
Forum
Reply
RE: Python + MXS

True. I need to clarify that anything I have posted is based on the scripts provided by Adam. Definitively a life safer. While I’m at it, anyone ha…

16 years ago
Forum
Reply
RE: Python + MXS

JamSession: Thanks for the ideas 90% of the time I am dealing with arrays, I need the size and looping abilities. So calling a max array doesn’t s…

16 years ago
Forum
Reply
RE: Python + MXS

I really don’t know much about MaxScript, but for my tool, where I need to make a list of cameras to extract values from, I had to create the array in…

16 years ago
Forum
Reply
RE: Python + MXS

Update on this: I was maybe expecting too much. When I called win32com.client.Dispatch(“MAX.Application.8”), I was expecting the script to launch Max…

16 years ago
Forum
Reply
RE: Python + MXS

Well, we’re at it again. While I had no problem getting it to work at home, I finally got a SysAdmin at work to run the scripts and we got some error…

16 years ago
Forum
Reply
RE: Python + MXS

This must be something with Admin privileges: I just tried this at home with 2009, and I managed to run the previous examples fine. I will check with…

16 years ago
Forum
Reply
RE: Python + MXS

Note: this was tested on version 8–not 2009, at work (hence my concern about permissions to write to the registry). From running register3dsMaxCom.ms…

16 years ago
Forum
Reply
RE: Python + MXS

Thanks for the script; this is getting me moving forward. Please forgive my ignorance on all this, but after installing the avguard plugin, and runni…

16 years ago
Forum
Reply
RE: Python + MXS

As you can see there is a ultra simple function that will just execute whatever is parsed to it. Now for the Python part, this will require the win32 …

16 years ago
Forum