Convertshaderscene¶
Converts a Maya file’s shaders to other renderers
- Run from inside
zoo.libs.maya.cmds.shaders.standalone.standalone_runconvert.py
- Or run as a standalone script from a bat file such as
set MAYA_APP_DIR=D:reposmayaPrefszoo_v2 set MAYA_MODULE_PATH=D:reposzootools_promodules set MAYA_PLUG_IN_PATH=C:Program FilesPixarRenderManForMaya-24.3plug-ins call “C:Program FilesAutodeskMaya2022binmayapy D:aPathconvertshaderscene.py”
TODO: - Support Glass - Support Thin Glass - Add auto VRay SubDivision - Support Subsurface - Renderman Clear Coat is on when it shouldn’t be
- parseArguments()¶
Standalone_runconvert¶
Converts a Maya file’s shaders to other renderers
“standardSurface” “lambert”, “blinn”, “phong”, “phongE”, “aiStandardSurface”, “VRayMtl”, “RedshiftMaterial”, “PxrSurface”
OPEN_PATH: file should usually be a standardSurface file. SHADER_TYPES: for the shaders to convert, a new Maya file is created for each shader. REMOVE_SHADERS: Removes old shaders MAINTAIN_CONNECTIONS: Keep any shader connections to diffuse etc