|
|
★CGRU★ |
|
CGRU provides scripts, plug-ins, AE (Attribute Editor) templates and 'override scripts' for maya (Override scripts are scripts with the the same name as native, and Maya run them instead of native). Maya scripts are located in cgru/maya/mel directory, plug-ins are in cgru/maya/mll/[version-architecture]. To add them to Maya point MAYA_SCRIPTS_PATH variable to CGRU override scripts and AE templates, MAYA_PLUG_IN_PATH to plug-ins of the correct version and archetecture.
Maya setup example:
#!/bin/bash
export CGRU_LOCATION=${CG_TOOLS}/cgru
source $CGRU_LOCATION/bin/afenv.sh
export MAYA_VERSION=2009
export MAYA_ARCH=-x64
# For 32bit Maya uncomment next line
# export MAYA_ARCH=
export MAYA_LOCATION=${CG_SOFT}/maya${MAYA_VERSION}${MAYA_ARCH}
export PATH=${MAYA_LOCATION}/bin:${PATH}
export MAYA_CGRU_LOCATION=${CGRU_LOCATION}/maya
export TMPDIR=/tmp
export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.5/site-packages
export MAYA_CGRU_MENUS_NAME="CGRU"
# path to modeling, animation, rendering ... menu items
# if not sel defaut MAYA_CGRU_LOCATION/mel will be used
#export MAYA_CGRU_MENUS_LOCATION="/cg/tools/maya/settings"
export MAYA_SCRIPT_PATH=${MAYA_CGRU_LOCATION}/mel/AETemplates:${MAYA_CGRU_LOCATION}/mel/override/${MAYA_VERSION}:${MAYA_SCRIPT_PATH}
export MAYA_PLUG_IN_PATH=${MAYA_CGRU_LOCATION}/mll/${MAYA_VERSION}${MAYA_ARCH}:${MAYA_PLUG_IN_PATH}
export XBMLANGPATH=${MAYA_CGRU_LOCATION}/icons/%B
#export XBMLANGPATH=${XBMLANGPATH}:${MAYA_LOCATION}/icons/%B
#:${MAYA_LOCATION}/icons/paintEffects/%B:${MAYA_LOCATION}/icons/cloth/%B:${MAYA_LOCATION}/icons/live/%B:${MAYA_LOCATION}/icons/fur/%B
# automatically load plugins located in MAYA_CGRU_LOCATION/mll/MAYA_VERSION directory
export MAYA_CGRU_PLUG_INS_AUTOLOAD=1
# use cgru to generate mentalray rayrc and place into MAYA_CGRU_MENTAL_RAYRC_DIR directory
export MAYA_CGRU_MENTAL=1
# if not set user temp directory will be used
export MAYA_CGRU_MENTAL_RAYRC_DIR=${HOME}/maya/${MAYA_VERSION}
# if not set "mayacgru" name will be used
export MAYA_CGRU_MENTAL_RAYRC_NAME=my_maya.rayrc
# if set uniquie name for rayrc will be generated `[MAYA_CGRU_MENTAL_RAYRC_NAME].[HOSTMANE].[pid].rayrc`
#export MAYA_CGRU_MENTAL_RAYRC_UNIQUE=1
export MI_CUSTOM_SHADER_PATH=${MAYA_CGRU_LOCATION}/mentalray/include
# not supported now
export MAYA_CGRU_RENDERMAN=0
# replace default maya filebrowser with a standart QT filebrowser with bookmarks
#export MAYA_CGRU_FILEBROWSER_QT=1
# set folders were restore MAYA_CGRU_FILEBROWSER bookmarks
# if not set MAYA_APP_DIR will be used
#export MAYA_CGRU_FILEBROWSER_GLOBAL="${HOME}/maya/file_bkmrk.global"
#export MAYA_CGRU_FILEBROWSER_PROJECT="${HOME}/maya/file_bkmrk.project"
#export MAYA_CGRU_FILEBROWSER_USER="${HOME}/maya/file_bkmrk.user"
#export MAYA_CGRU_FILEBROWSER_RECENT="${HOME}/maya/file_bkmrk.recent"
MAYA_LD_LIBRARY_PATH=$MAYA_LOCATION/lib
if [ "$LD_LIBRARY_PATH" != "" ]; then
export LD_LIBRARY_PATH="${MAYA_LD_LIBRARY_PATH}:${LD_LIBRARY_PATH}"
else
export LD_LIBRARY_PATH="${MAYA_LD_LIBRARY_PATH}"
fi
|
This code located in cgru/afanasy/examples/maya/setup_maya.sh:
MS Windows script example is also provided, it do the same.
| SourceForge.net Project |
★CGRU★ |
Раздел на форуме CGTALK.RU |