--- Connecting Maya to Visual Studio Code (VS Code) ==allows for advanced features like **code execution from the editor**, **syntax highlighting**, **autocomplete**, and full **remote debugging** using extensions like [MayaPort](https://marketplace.visualstudio.com/items?itemName=JonMacey.mayaport), [MayaPy](https://marketplace.visualstudio.com/items?itemName=FXTD-Odyssey.mayapy), and the standard Python extension with== `debugpy`.  namination.co.uk +4 Method 1: Sending Code (using MayaPort or MayaPy extensions) This method allows you to write MEL or Python code in VS Code and execute it directly within a running Maya instance via a `commandPort`.  1. **Install Necessary Software**: Ensure both Autodesk Maya and [Visual Studio Code](https://code.visualstudio.com/download) are installed and running. 2. **Install VS Code Extensions**: - Open the Extensions view (Ctrl+Shift+X) in VS Code. - Search for and install extensions such as MayaPort or MayaPy. 3. **Open `commandPort` in Maya**: - In the Maya Script Editor, go to the MEL tab. - Execute the following MEL command to open a port for communication: ``` mel commandPort -name "localhost:7001" -sourceType "mel" -echoOutput; ``` - A separate port (e.g., `localhost:7002`) can be opened for Python if needed. 4. **Send Code from VS Code**: - In VS Code, open the Command Palette (Ctrl+Shift+P). - Run commands like `sendPythonToMaya` or `sendMelToMaya` to execute your selected code or entire script in the running Maya instance. The output will appear in the VS Code debug console.  Method 2: Remote Debugging (using `debugpy`) For full interactive debugging (setting breakpoints, inspecting variables), you need to set up remote debugging using the `debugpy` library.  Tech-Artists.Org +2 1. **Install `debugpy` in Maya's Python Environment**: You'll need to make the `debugpy` library available to the Python interpreter that Maya is using. - Download the `debugpy` package. - Copy the `debugpy` folder (often found in the `src` folder of the downloaded package) into one of your Maya script directories (e.g., `C:\Users\USERNAME\Documents\maya\MAYA_VERSION\scripts`). 2. **Configure Maya to Listen for a Debugger**: Add the following Python code to the beginning of your Maya Python script or run it in the Maya Script Editor to make Maya pause and wait for the VS Code debugger to attach: ``` python import debugpy debugpy.listen(("localhost", 5678)) print("Waiting for debugger attach...") debugpy.wait_for_client() ``` Ensure Maya is running and this code has been executed. 3. **Configure VS Code `launch.json`**: - Go to the Run and Debug panel (Ctrl+Shift+D) in VS Code. - Click "create a `launch.json` file" and select the **Python** environment. - Choose the **Remote Attach** configuration. - Ensure the generated configuration matches the host and port you specified in your Maya script (e.g., `localhost` and `5678`). The configuration should look like this: ``` json { "name": "Python: Remote Attach", "type": "python", "request": "attach", "port": 5678, "host": "localhost", "pathMappings": [ { "localRoot": "${workspaceFolder}", "remoteRoot": "${workspaceFolder}" } ] } ``` It is often helpful to set `localRoot` and `remoteRoot` to the same workspace folder path. 4. **Start Debugging**: - In VS Code, set breakpoints in your Python code where you want execution to pause. - Select the "Python: Remote Attach" configuration in the Run and Debug panel and click the Start Debugging (F5) button. VS Code will connect to the running Maya process, and you can step through your code, watch variables, and use standard debugging features. ![namination.co.uk](https://encrypted-tbn1.gstatic.com/faviconV2?url=https://namination.co.uk&client=AIM&size=128&type=FAVICON&fallback_opts=TYPE,SIZE,URL)namination.co.uk +4 --- Citations: Maya to VS Code Connection - **Maya Remote Debugging with Visual Studio Code**. _Namination_. (November 27, 2021). [namination.co.uk](https://namination.co.uk/maya-remote-debugging-with-visual-studio-code/). - **MayaCode - Visual Studio Marketplace**. _Visual Studio Marketplace_. (October 29, 2021). [marketplace.visualstudio.com](https://marketplace.visualstudio.com/items?itemName=saviof.mayacode). - **How to attach VS Code Python debugger to Autodesk Maya**. _[GitHub Gist](https://gist.github.com/joaen/bdc154ecb3f28d8481b9fb23411d1008)_. (January 23, 2025). gist.github.com. - **MayaPort - Visual Studio Marketplace**. _Visual Studio Marketplace_. (August 01, 2016). [marketplace.visualstudio.com](https://marketplace.visualstudio.com/items?itemName=JonMacey.mayaport). - **Debugging maya python from VS code, how do I use debugpy?**. _[Tech-Artists.Org](https://www.tech-artists.org/t/debugging-maya-python-from-vs-code-how-do-i-use-debugpy/16261)_. (November 20, 2023). tech-artists.org. - **How to configure Visual Studio Code for Maya 2019?**. _Autodesk Forums_. (June 06, 2019). [forums.autodesk.com](https://forums.autodesk.com/t5/maya-programming-forum/how-to-configure-visual-studio-code-for-maya-2019/td-p/8835843). - **Maya Dev Toolkit - Visual Studio Marketplace**. _Visual Studio Marketplace_. (June 08, 2025). [marketplace.visualstudio.com](https://marketplace.visualstudio.com/items?itemName=Cx-Game.maya-dev-toolkit).  --- Academia Stack Exchange · https://academia.stackexchange.com How to quickly get complete list of citations to all my papers? Search for an article that you (or someone else) has authored, click on the author name, then click on "citations". YouTube · https://www.youtube.com How to check citations and references match - YouTube This is the way to check that every citation in your essay matches with a reference in your list. APA Style · https://apastyle.apa.org Reference list setup - APA Style The reference list allows readers to identify and locate the cited works. The following example shows the proper format of an APA Style reference list. Learn ... UMGC Library · https://libguides.umgc.edu APA 7th Edition Citation Examples: Check Your Citations with AI Here we'll show you examples of using AI to check an APA citation, but AI will also do a fairly accurate job with other citation styles as well, like MLA and ... Adobe Help Center · https://helpx.adobe.com View citations in responses - Adobe Help Center View citations in responses. Last updated on Nov 26, 2025. Learn how to find, understand, and verify citations in AI responses. CT State · https://library.ctstate.edu References List Basics - Housatonic APA Guide References List Basics · Book: Author's Last Name, Author's First Initial. (Year). Title of book: Subtitle of book. Publisher. Example: Smith, J. Paperpile Forum · https://forum.paperpile.com chronological ordering of multiple citations - Feature requests The ordering of citations within an in-text citation is determined by the citation style chosen. For instance, the APA style orders citations by author and ... Concordia University, St. Paul · https://library.csp.edu Secondary Source/Indirect Citation (as cited in) - APA 7th ... For the in-text citation, include the author and year of both the original and secondary sources. Add "as cited in" between the sources in the in-text citation. Sourcely · https://www.sourcely.net Citing the Same Source Multiple Times: Best Practices for ... Same Source, Consecutive Citations: When citing the same source multiple times in a row, you can omit the author's name in subsequent citations ... Las Vegas Justice Court · https://www.lasvegasjusticecourt.us TRAFFIC CITATIONS - Las Vegas Justice Court Click here for a copy of the Civil Infraction Response Form. For a list of civil penalties associated ---