![]() Last but not least, create a new Python Remoted Debug configuration, and call it whatever you want. Once you successfully import pydevd, make sure to include the following at the beginning of your script code. You need to initialize a trace from the python script so that the remote debugger can trap any exceptions or breakpoints.Īdd the full path to pydevd to your PYTHONPATH or include it in your sys.path dynamically. P圜harm includes a remote debugging module called pydevd (located under P圜harm installation\helpers\pydevd). In P圜harm open Settings->Tools->External Tools.Īdd a new item, which will open the Edit Tool window.įill out Name, Description fields, but most important is to point the Programs field to your MXSP圜om.exe, and in Parameters enter ‘-f $FilePath$’ (without quotes). Here are some steps that I followed to get remote debugger in P圜harm working alongside MXSP圜OM. I just tested this with the remote debugger in P圜harm 2016.3.2 and it works like a charm. If MXSP圜OM users determine how to do that, please include that information on this project’s WIKI page. Attaching a debugger and utilizing breakpoints is probably also achievable in other Python code editors like WingIDE or P圜harm. This makes debugging Python scripts for 3ds Max much easier than trying to use 3ds Max’s internal editor, which has no debugger or breakpoint capabilities. Please visit the release page on GitHub for more information on how to set up external code editors (UltraEdit and Visual Studio are provided as examples) and to get the latest release.Ī note on Visual Studio: If you use Python Tools for Visual Studio and attach to 3dsmax.exe any breakpoints you have set will get hit. C:\Program Files\MXSP圜OM\MXSP圜OM.exe -f “%f”Click OK to add the command. Set the command line to the path where MXSP圜OM.exe is located, a -f command switch and “%f”, which UltraEdit replaces with the filepath of the current document. Set the Menu Item Name to something like, “Execute Script in 3ds Max”. For instance, in UltraEdit ( go to Advanced \ User Tools \ Configure Tools On the Tool Configuration dialog insert a new command. Put MXSP圜OM.exe on your harddrive.Put the initialize_COM_server.ms file in %localappdata%\autodesk\3dsmax\scripts\startup for instance, %localappdata%\autodesk\3dsmax\2017 - 64bit\scripts\startupIn your editor of choice add an external tool. ![]() It also supports editing of Python files and having them execute in versions of 3ds Max, starting with 3ds Max 2015, that support Python scripts. It offers the same functionality as MXSCOM but can run on modern versions of Windows. MXSP圜OM is a C# based replacement for MXSCOM. ![]() Modern versions of Windows can not use Simon Feltman’s old MXSCOM.exe program due to it being ActiveX based. This allowed users to choose their own external code editor for editing MaxScript and to be able to have their MaxScript code execute in 3ds Max by way of having the code editor utilize MXSCOM to send the file into 3ds Max and have it executed. In 2005 Simon Feltman released the first MXSCOM, a small Visual Basic 6 application that took commands and sent them to Autodesk’s 3ds Max’s internal COM server. A modern version of MXSCOM, to allow for editing & execution of 3ds Max MaxScript and Python files from external code editors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |