Configuring Gaffer for Third-Party Tools¶
Gaffer is compatible with the following commercial and open-source third-party tools:
Gaffer comes with Appleseed, so it will require no additional configuration. For the rest of the tools in this list, you will need to set some additional environment variables.
Note
For the the following Linux instructions, we will assume you are using the bash shell and are familiar with terminal commands. Other shells will have comparable methods for setting environment variables.
Configuring Gaffer for Arnold¶
For Gaffer to load the GafferArnold module, an ARNOLD_ROOT
environment variable must point to the Arnold installation directory. Before you begin, make sure that Arnold is correctly installed and configured, and close any open instances of Gaffer.
Arnold in Linux¶
Note
For this instruction, we will assume you have Arnold 5.1.1.1 installed to /opt/solidangle/arnold-5.1.1.1
.
To create the ARNOLD_ROOT
environment variable in Linux:
Open
~/.bash_profile
with a text editor.Add the line
export ARNOLD_ROOT=/opt/solidangle/arnold-5.1.1.1
and save.In a terminal, test that the variable is set:
user@desktop ~ $ echo $ARNOLD_ROOT # /opt/solidangle/arnold-5.1.1.1
Arnold in OSX¶
Note
For this instruction, we will assume you have Arnold 5.1.1.1 installed to /opt/solidangle/arnold-5.1.1.1
.
To create the ARNOLD_ROOT
environment variable in OSX:
Open
~/.bash_profile
with a text editor.Add the line
export ARNOLD_ROOT=/opt/solidangle/arnold-5.1.1.1
and save.Open a terminal (Finder > Go > Utilities > Terminal).
Test that the variable is set:
MacBook:~ user$ echo $ARNOLD_ROOT # /opt/solidangle/arnold-5.1.1.1
Verifying Arnold is loaded¶
The next time you start Gaffer, the Arnold nodes will be available from the node creation menu (right-click inside the Graph Editor).
Configuring Gaffer for 3Delight¶
For Gaffer to load the GafferDelight module, a DELIGHT
environment variable must point to the 3Delight installation directory. Before you begin, make sure that 3Delight is correctly installed and configured, and close any open instances of Gaffer.
3Delight in Linux¶
Note
For this instruction, we will assume you have 3Delight 13.0.18 installed to /opt/3delight-13.0.18
.
To create the DELIGHT
environment variable in Linux:
Open
~/.bash_profile
with a text editor.Add the line
export DELIGHT=/opt/3delight-13.0.18
and save.In a terminal, test that the variable is set:
user@desktop ~ $ echo $DELIGHT # /opt/3delight-13.0.18
3Delight in OSX¶
Note
For this instruction, we will assume you have 3Delight 13.0.18 installed to /opt/3delight-13.0.18
.
To create the DELIGHT
environment variable in OSX:
Open
~/.bash_profile
with a text editor.Add the line
export DELIGHT=/opt/3delight-13.0.18
and save.Open a terminal (Finder > Go > Utilities > Terminal).
Test that the variable is set:
MacBook:~ user$ echo $DELIGHT # /opt/3delight-13.0.18
Verifying 3Delight is loaded¶
The next time you start Gaffer, the 3Delight nodes will be available from the node creation menu (right-click inside the Graph Editor).
Configuring Gaffer for Tractor¶
For Gaffer to interface with Tractor, the PYTHONPATH
environment variable must contain the path to the Tractor python module. Before you begin, make sure that Tractor is correctly installed and configured, and close any open instances of Gaffer.
Tractor in Linux¶
Note
For this instruction, we will assume you have Tractor 2.2 installed to /opt/pixar/Tractor-2.2
.
To add the Tractor python module to the PYTHONPATH
environment variable in Linux:
Open
~/.bash_profile
with a text editor.Add the line
export PYTHONPATH=$PYTHONPATH\:/opt/pixar/Tractor-2.2/lib/python2.7/site-packages
and save.In a terminal, test that the variable is set:
user@desktop ~ $ echo $PYTHONPATH # /usr/bin/python2.7:/usr/lib/python2.7:/opt/pixar/Tractor-2.2/lib/python2.7/site-packages
Note
Depending on your system’s configuration, your PYTHONPATH
variable might not appear exactly as above. What’s important is whether :/opt/pixar/Tractor-2.2/lib/python2.7/site-packages
appears in the path.
Tractor in OSX¶
Note
For this instruction, we will assume you have Tractor 2.2 installed to /Applications/pixar/Tractor-2.2
.
To add the Tractor python module to the PYTHONPATH
environment variable in OSX:
Open
~/.bash_profile
with a text editor.Add the line
export PYTHONPATH=$PYTHONPATH\:/Applications/pixar/Tractor-2.2/lib/python2.7/site-packages
and save.Open a terminal (Finder > Go > Utilities > Terminal).
Test that the variable is set:
MacBook:~ user$ echo $PYTHONPATH # /Library/Frameworks/Python.framework/Versions/2.7/bin:/Applications/pixar/Tractor-2.2/lib/python2.7/site-packages
Note
Depending on your system’s configuration, your PYTHONPATH
variable might not appear exactly as above. What’s important is whether :/Applications/pixar/Tractor-2.2/lib/python2.7/site-packages
appears in the path.
Verifying Tractor is loaded¶
Once the tractor folder has been added to your PYTHONPATH
, you can then verify that Tractor is loading correctly:
- Launch Gaffer.
- Create and select a SystemCommand node (Dispatch > SystemCommand).
- In the Node Editor, click Execute. The Dispatcher window will open.
- Tractor will be available in the Dispatcher drop-down menu.