PyMel Development: With VSCode

Step 1: Configure Visual Studio Code

Install Visual Studio Code

Install Python Plugin

Step 2: Prepare Maya

From the Installation Guide from SendToMaya:

To enable ports at startup create a file named userSetup.mel in the following folder:

Windows: :\Documents and Settings\\My Documents\maya\\scripts
Mac OS X: ~/Library/Preferences/Autodesk/maya//scripts.
Linux: ~/maya//scripts.
(where ~ is your home folder)
In the userSetup.mel file add the following

Step 3: Autocomplete

Download Maya Devkit

Autodesk Maya Devkit
(Important: Devkit available for all Operating systems, select the correct one before clicking download)

Extract the package to the C:/Program Files/Autodesk/Maya2018/devkit directory.

Configure VSCode

Open the Settings and add following lines (Adjust to your OS):

Step 4: Test Setup

  1. Open Maya and VSCode
  2. In VSCode create a file
  3. Write following lines:

  1. Press CTRL-ALT-M
  2. Check in Maya if a Sphere was created.
Rendering Animation without Watermark

In Maya 2016 Autodesk decided to remove Mental Ray from the default package of Maya, they replaced it with Arnold.
Due to the change of Licence it is not possible anymore to use Network Nodes of Arnold. Thus “Batch Rendering” adds an Arnold Watermark to the image.

However Maya provides you with another method of Rendering an Animation

Step 1 – General Rendering Settings

  • Frame/Animation ext: You need to select something with a “#”-Symbol in the Name. The “#” is the placeholder for the Frame Number.
  • Frame Range: This tells Maya which Frames should be rendered.
  • Renderable Camera: This is the View that is going to be Rendered
  • The Image Size: This is a setting you should have set earlier when defining your camera, however simply double check if this is set to the correct output.

Step 2: Render Sequence

Instead of using the Arnold Render View, you must use the default Maya Render view.

With Render > Render Sequence, the Animation will be rendered with Arnold. The Output will be stored in your project Settings location for “/images”

Note: If you open directly the Maya Renderview, you first have to select the correct camera again. (Render > Render > {Render_Cam})

To Repeat the Render press the Button “Render Sequence”