Stage Guide > Toon Boom Harmony 10 Stage User Guide > Chapter 14: 2D-3D Integration > Rendering and Compositing 3D Models > Setting Up the Environment Variable on Mac OS X > Creating and Setting Up the Script on Mac OS X

Creating and Setting Up the Script on Mac OS X

Follow these steps to create the script to call Maya and to set it up.

Contact support at support@toonboom.com if you experience any problem while creating the script and setting it up or 3D rendering.

From the Terminal, we want to create a file that we can save the script in.

You may create this file in either /usr/local/bin or ~/bin. If you save it in usr/local/bin, then all users will be able to render on that machine. If you create the file in ~/bin, then only the current user will be able to render from that machine.

To create the script and set it up:

1. First, change directory to the directory where you want to create the script file:

cd /usr/local/bin

2. If the directory bin doesn't exist yet, then create it:

mkdir /usr/local/bin

3. We will now create the script file called maya:

sudo vim maya

4. Type in your password to grant administrator access
5. Now from inside the text editor, select "i" to go to Insert Mode, and copy and paste the following text:

#!/bin/bash

exec /Applications/Autodesk/maya2012/Maya.app/Contents/MacOS/Maya "$@"

6. Save and exit by typing in:

Esc :wq

7. Now we need to edit the file to make sure that all users can access it. Type in:

chmod ugo+x maya

Related Topics 

Setting Up the Environment Variable on Mac OS X