Python and PyQt in 3dsMax

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  10 October 2009
Python and PyQt in 3dsMax

Ok so here we go - we at Blur had released a plugin about a year ago that began exposing Python functionality to Maxscript....

We since decided that it was not good enough.

We have developed a way to run Python as a complete replacement of Maxscript in 3dsMax, utilizing Python and PyQt to develop tools, we're hoping to revolutionize the ability to develop fast, efficient and powerful utilities.

All the information you need to get going can be found at our new development website:

Please feel free to post on the wiki pages for requests, bugs, and comments. Its still very beta and are looking forward to trying to make this the new future of programming in 3dsMax.

Please keep in mind - this is very much beta, and the code is as-is, but we will appreciate feedback as it'll make our own code more stable.


Eric Hulser
Tools Developer
Blur Studio
  10 October 2009
BAD ASS! Been waiting for this for a while now... as you know by how often I've bugged you -- no, I don't have a life, thanks for reminding me!

--Great work, I think this will open a lot more doors for max / max users... can't wait to start doing some serious stuff with it!
  10 October 2009
Wow! Awesome stuff!
Thanks for sharing :-)
  10 October 2009
This is brilliant! I have been holding off on the whole python in max via com business mainly because of the lack of solid integration. I will be investigating this asap for sure.

Thanks a million!
  10 October 2009
Absolute gread idea!!!

I try the 64bit version for 3dsmax2009...

My AntiVir Guard alerts while i install Blur3dsMax2009_x64_install_8275.exe !
The File "C:\blur\dev\offline\code\maxscript\treegrunt\Lib\b" whould have a script virus "HTML/Silly.Gen"

Seems to be a false alarm, see:

@ehulser: Please activte the bug tracker on google code!

EDIT: I have installed Python 2.6 64Bit (ActiveState one), after this i installed Blur3dsMax2009_x64_install_8275.exe and than Py3dsMax2009_python26_x64_install_8666.exe
I started 3dsmax2009 64Bit and can't see the python menu item :(

EDIT2: Sorry, i found and the issues with the hardcoded path.
After i copied all files, i get this error on 3dsmax 2009 64Bit startup:
Quote: ---------------------------
MAXScript Auto-load Script Error - C:\Program Files\Autodesk\3ds Max 2009\stdplugs\stdscripts\ Exception
-- Syntax error: at imgTagPlus, expected <rollout control>
-- In line: imgTagPlus u

I run in the maxscript editor and get this in the listener:

EDIT3: I tried to install Blur Libs, but i get this error:
Quote: ---------------------------
Blur Libs 1.0.0 win32-msvc2008_64 Setup
Error opening file for writing:


Bat idea to install in C:\windows\system32\ :( (I'm using Vista 64Bit)

EDIT4: Sorry again. I installed "BlurBeta Tools" and found in the readme.txt the TroubleShooting section for MAX Users. The error was, i doesn't insert the path in plugin.ini correctly.

Last edited by jedie : 10 October 2009 at 08:43 AM.
  10 October 2009
Great news Eric!

We will develop tools with Py3dsMax and the integration of Qt. Sure we will send feedback.

Are you planning a Max 2010 build in the near future ?

Last edited by ypuech : 10 October 2009 at 11:49 AM.
  10 October 2009
OK, after a log road of installations and manuel copy things from one location to a other location, i see the Python main menu entry in 3dsmax 2009 64Bit

But it doesn't work well.

I can open the Python Logger. But the menu points "new"-, "open"- and "run" python script doesn't work. I get this Tracebacks:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'QApplication' object has no attribute 'openScript'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'QApplication' object has no attribute 'newScript'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'QApplication' object has no attribute 'runScript'

In the Python Logger menu under File i get this error on "open script"
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\blur\wingui\", line 83, in openScript
    fileName = str( QFileDialog.getOpenFileName( PyQWinHook.core, 'Open Script File', LAST_FILENAME, 'Python Files (*.py);;All Files (*.*)' ) )
NameError: global name 'PyQWinHook' is not defined

But PythonLogger/NewScript and PythonLogger/RunScript works!

EDIT: A other question: You tools are under GPL. But why you are not open the subversion server or use SVN from google code? I would like to checkout and help if i can.

Last edited by jedie : 10 October 2009 at 09:04 AM.
  10 October 2009
Very nice. I look forward to having a go at this when the current project is out of the way.
Paul Neale
  10 October 2009

Perfect timing... I was just starting to dive into the whole python thing.

Thanks a bunch.
MatManager - take control of your materials
Teacup - online material sharing inside 3D Studio
  10 October 2009
HUGE news! Thanks!

Ian, I guess this means you won't be using dotNet as much.

Edit: Might be good to have a PyQT sticky soon..!
  10 October 2009
Originally Posted by labbejason: HUGE news! Thanks!

Ian, I guess this means you won't be using dotNet as much.

Edit: Might be good to have a PyQT sticky soon..!

When you said dotNet, I just puked a lil bit. Thanks, Jason!
  10 October 2009


  10 October 2009
Hey guys -

Thanks for the quick feedback:


I have enabled the Issue Tracking on the Google Code page - we don't have a public SVN repo yet, so thats why we don't have the code online but I'll talk to my supervisor when I get into work about it.

I updated the KnownIssues page with your changes - I noticed you posted comments on there also, Thanks! Much appreciated.

I deprecated the Blur Tools download until this afternoon, I can fix those install paths and the plugin.ini config, the Py3dsMax installers should be working fine.

I'll talk to our other programmer Matt about the system32 install on Vista x64, but we don't run Vista at work - so we might not support that...may have to look into getting you the code.
  10 October 2009
This is great news. Glad to see progress on this project, I look forward to trying it out this weekend.

I would REALLY like to see this open-sourced so we can all contribute to making this a rock solid plugin. Plus it is very risky for our studio to build production tools around plugins we don't have source code for. We can't risk being left high and dry when new version of max comes out and we have to wait the plugin to be re-compiled. This is even more of an issue with beta testing 3dsmax versions.

Also, do you know if there are still licensing issues with Qt/PyQT on windows? Is a commercial license still required?

I'd be willing to get wxPython integrated as alternative since I have already done some work on this.

Thanks for sharing,

  10 October 2009
New to Maxscript and such. I am a little confused as to where these files should be installed to. The root to my 3dsmax is C:\Program Files\Autodesk\3ds Max 2009 so where should I install downloads to. BTW I have 64 bit version.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:58 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.