jmiguel2902 / blur-dev

Automatically exported from code.google.com/p/blur-dev
0 stars 0 forks source link

New to py3dsmax #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I have used maxscript for 3ds max, but have done more coding with mel and 
more recently python in maya. I currently have python 2.6 and the relative pyqt 
and qt designer installed for use with maya, but have seen that the studio has 
developed a way to use python in 3dsmax. 
I already have python 2.6 installed, pyqt and qt designer as well as other 
modules that I use with Maya so want to know if what I have is ok to use and 
what extra downloads I may need to start using python and qt with 3ds max.

Thanks

Malcom Armstrong 

Original issue reported on code.google.com by malcomar...@hotmail.co.uk on 21 Jul 2013 at 11:17

GoogleCodeExporter commented 9 years ago
I forgot to add I have max 2013 and maya 2013 64 bit.

Original comment by malcomar...@hotmail.co.uk on 21 Jul 2013 at 11:20

GoogleCodeExporter commented 9 years ago
Unfortunately we are not currently supporting Max 2013, the studio skipped it 
for Max 2014.

For PyQt4 to properly integrate with Max it needs PyQt4.QtWinMigrate.QMfcApp. 
So your versions of Qt/PyQt4 will need to support that. Max has a caddies.gup 
plugin that uses Autodesk's special Qt build. As far as I know Max 2012 and 
2013 use standard Qt dlls names, and need to be compiled with msvc2008, Max 
2014 requires Qt to be compiled in msvc2010 and Autodesk had the brilliant idea 
to rename every Qt dll to include _AD_ in the name. You can only have one 
active Qt running at once, so we had to modify caddies.gup and MaxQtBridge.dll 
to use the standard naming conventions.

If the versions of Qt/PyQt are not compatible with the ones required for maya, 
you should probably install Qt into the Max folder. See 
https://code.google.com/p/blur-dev/issues/detail?id=73 for more info on this.

Original comment by hen...@gmail.com on 4 Dec 2013 at 8:28

GoogleCodeExporter commented 9 years ago
What I should actually have put is that I have max 2011 and 2014.

Original comment by mjearmst...@gmail.com on 28 Feb 2014 at 3:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Right. Lets start over as I made a mess of the first posts. Sorry about that. 
Below is a list of everything that was installed prior to attempting to install 
the blur offline file. I need the Blur plugin to work in both 64 bit versions 
of Max.

No Maya installed at this time on the machine I am working on, but the blur 
install will be rolled out to machines that have Maya 2011 64 bit and Maya 2014 
64 bit.

Installed:

Max 2011 64 bit and Max 2014 64 bit 
Python 2.7.4 64 bit
PyWin32 64 bit
PyQt4 4.10.3 and Qt 4.8.5
PySide 1.1.2 
Microsoft Visual C++ 2008 - x86 9.0.30729.4148
Microsoft Visual C++ 2008 - x64 9.0.30729.4148
Microsoft Visual C++ 2010 - x86 10.0.40219
Microsoft Visual C++ 2010 - x64 10.0.40219

I installed the Blur plugin and found:

C:\Python27x64\Lib\site-packages\blur
C:\Windows\System32\blur64
C:\Python27x64\Lib\site-packages\PyQt4

but not 

C:\Python27x64\Lib\site-packages\blurdev

Also, the desktop shortcuts for Treegrunt and Blur Ide throw an error (Attached 
image)

It seems that the 2014 installer is putting components in different places and 
the install is a little confusing. Considering what I have already installed, 
do I also need to install the two items below?

qt-dev_install_4.8.5-0_win32-msvc2008.exe
qt-dev_install_4.8.5-0_win32-msvc2008_64.exe

Any assistance will be appreciated. I have been reading posts on other pages 
including 
https://area.autodesk.com/blogs/chris/py3dsmax_python_scripting_for_3ds_max_from
_blur_studios but still having issues. I know it can be achieved, but need a 
little input from you guys if possible.

Thanks again.

Original comment by mjearmst...@gmail.com on 5 Mar 2014 at 5:21

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
When I opened Max 2014 and tried to show IDE editor, I got another error 
message (attached image 1). I was able to write a script, save it and then and 
run it so thats good but I cannot acess the IDE editor from the desktop 
shortcut or the menu in max 2014.

I cannot access anything in Max 2011 though.

I found: C:\Program Files\Autodesk\3ds Max 2011\bin\qt_bak, so will I need to 
put the files back in the root folder?

Original comment by mjearmst...@gmail.com on 5 Mar 2014 at 5:53

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, so while I am waiting for a response I have done some checking on the pc 
and found the following:

C:\Python27x64\blurdev (found)

C:\Windows\System32\blur64 (found)

C:\Python27x64\Lib\site-packages\PyQt4 (found)

C:\blur (found)

c:\blur\common\designer.exe (Missing folder and exe)

c:\blur\common\assistant.exe (Missing folder and exe)

c:\Desktop\Blur IDE (shortcut not working)

    Default location string after install:

        BLUR IDE shortcut target:

        C:\pythonw.exe C:\Python27x64\blurdev\runtimes\ide_editor.py

        start in:

        C:\Python27x64\blurdev\\resource

    Edited location string:

        C:\Python27x64\pythonw.exe C:\Python27x64\blurdev\runtimes\ide_editor.py

        Start in:

        C:\Python27x64\blurdev\runtimes

        Still does not open IDE from desktop

the shortcut location mentioned does not work either:

PYTHON_PATH\pythonw.exe 
PYTHON_PATH\lib\site-packages\blurdev\runtimes\ide_editor.py

c:\blur\dev\offline (found)

c:\Desktop\Treegrunt (shortcut not working)

    Default location string after install:

        Treegrunt shortcut target       

        C:\pythonw.exe C:\Python27x64\blurdev\runtimes\treegrunt.py

        Start in:

        C:\Python27x64\blurdev\\resource

    Edited location:

        C:\Python27x64\pythonw.exe C:\Python27x64\blurdev\runtimes\treegrunt.py

        Start in:

        C:\Python27x64\blurdev\runtimes

        Still does not open Treegrunt from desktop

Max 2011 blur folders:

C:\Program Files\Autodesk\3ds Max 2011\plugins\blur

C:\Program Files\Autodesk\3ds Max 2011\Scripts\python\site-packages

Max 2014 blur folders:

Qt files found in max 2014 root folder

C:\Program Files\Autodesk\3ds Max 2014\plugins\blur

C:\Program Files\Autodesk\3ds Max 2014\scripts\python\site-packages\blur

C:\Program Files\Autodesk\3ds Max 2014\scripts\python\site-packages\PyQt4

So while I had already installed Python, qt etc prior to installing the blur 
plug in, it seems that there are some lost connections. I have checked the path 
environment variable and it has the locations I would expect, but as stated, 
the desktop shortcuts were not working so I edited them as above to no avail.

In Max 2014:

C:\Program Files\Autodesk\3ds Max 2014\bin\qt_bak

I can create a script, open a script, and run a script but when I click on the 
Show IDE Editor, I get the following error message:

Traceback (most recent call last):
  File "C:\Program Files\Autodesk\3ds Max 2014\scripts\python/ide_editor.py", line 5, in <module>
    """
  File "C:\Python27x64\blurdev\cores\core.py", line 981, in showIdeEditor
    blur.ide.ideeditor.IdeEditor.instance().edit()
NameError: global name 'blur' is not defined

I also found the following folder:

Treegrunt from the menu in max opens the UI but some scripts throw an error. 
This is marginal at the moment though.

In Max 2011:

C:\Program Files\Autodesk\3ds Max 2011\bin\qt_bak

In max 2011,the python menu is there but nothing happens when I click on any of 
the menu items.

I am sure that one of the guys at Blur will have an idea about what is wrong, 
and it seems that there are no qt files in Max 2011 that the menu can link to, 
which may account for the non start when the items in the max python menu are 
clicked. I saw a reference to mscv versions of Qt to install, but cannot find 
the links anymore.

Original comment by mjearmst...@gmail.com on 6 Mar 2014 at 5:57