aboutsummaryrefslogtreecommitdiff
path: root/mayaPlug/README-samples.linux
blob: 5b743a302ab3f6ea3b1658dbe4d3a32d080772ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Shave And A Haircut APIs
------------------------
There are two APIs for use with Shave: a standalone API for building
applications which process Shave archive files (such as those produced by
the 'shaveRender -createDRAFile' command in Maya), and a plugin API for
building Maya plugins which can access Shave's data from within Maya.


Standalone API
--------------
The standalone API consists of the following two header files, found in this
directory:

	shaveEngine.h
	shaveSDKTYPES.h

as well as the following dynamic library, also found in this directory:

	libShaveEngine.so


Maya Plugin API
---------------
The Maya plugin API consists of the following two header files, found in the
same directory as Maya's own API header files
(e.g.  /usr/aw/maya7.0/include/maya):

	shaveAPI.h
	shaveItHair.h

as well as the following dynamic library, found in Maya's 'lib' directory
(e.g. /usr/aw/maya/7.0/lib):

	libShaveAPI.so

The header files contain complete documentation on the plugin API.


Samples
-------
'shaveAPITestCmd.cpp' is a sample Maya plugin using Shave's plugin API.

'shaveAPITestApp.cpp' is a sample application using Shave's standalone API.

To build them, set your MAYA_LOCATION environment variable to point to the
installation directory for the version of Maya you plan on using the plugin
with, then do the following command:

	make


Note that different versions of Maya require different versions of the
compiler.  The Makefile assumes that the compilers for the various versions
of Maya are located as follows:

	Maya Version	Compiler Path		Red Hat Version
	------------	-------------		---------------
	 5.0/5.0.1	/opt/gcc322/bin/c++322	     7.3
	    6.0		/opt/gcc332/bin/c++332	     7.3
	    6.5		default 'c++' command	     9.0
	    7.0		/opt/gcc334/bin/c++334	     9.0


If your compiler versions are located in different directories, then you
will have to modify the Makefile accordingly.