glmCrowdSimulationBaker

The glmCrowdSimulationBaker commands bakes Simulation Cache files linked in a Crowd Render Proxy node as Renderer specific scene files (.ass, .vrscene, .rib,...) or baked geometry FBX / Alembic files. This command is called by the Simulation Baker.
glmCrowdSimulationBaker [-startFrame int] [-endFrame int] [-renderProxyNode string] [-entityIds string]
[-cacheExpEnabled bool] [-cacheName string] [-layoutName string] [-cacheExpOutDir string]
[-fbxExpEnabled bool] [-fbxExpAscii bool] [-fbxExpOutDir string] [-fbxExpOutMode int]
[-abcExpEnabled bool] [-abcExpOutDir string] [-abcExpOutMode int]
[-arnExpEnabled bool] [-arnExpOutDir string]
[-vrayExpEnabled bool] [-vrayExpOutDir string] [vrayDcc int]
[-ribExpEnabled bool] [-ribExpOutDir string] [-ribPlugin string]

Flags

Global Flags

These parameters are relative to the global Simulation Baker parameters:

Long name (short name) Argument types Properties Description
-startFrame (-sF) int mandatory start frame from which the simulation will be baked
-endFrame (-eF) int mandatory end frame to which the simulation will be baked
-renderProxyNode (-rpn) string mandatory, multi-use name of the Crowd Render Proxy nodes which will be baked
-entityIds (-eid) string   Entity Ids to bake as a printer string (ex: "1001", "1001-5001", "1001, 2001, 5001" or "*")

Simulation Cache Flags

These parameters are relative to the Simulation Cache bake of the Simulation Baker:

Long name (short name) Argument types Properties Description
-cacheExpEnabled (-cen) bool   if true, the Simulation Cache Files edited with the Simulation Layout Tool will be baked as new Simulation Cache Files
-cacheName (-can) string   Baked Simulation Cache file name.
-layoutName (-can) string   Baked Layout File name. As some layer operations can not be baked in a Simulation Cache (such as Set Mesh Assets or Kill), a new Layout File will be created when a Simulation Cache will be baked
-cacheExpOutDir (-cod) string   Directory to which to write the Simulation files

FBX Flags

These parameters are relative to the FBX files bake of the Simulation Baker:

Long name (short name) Argument types Properties Description
-fbxExpEnabled (-fen) bool   if true, the simulation caches will be baked in FBX
-fbxExpAscii (-fea) bool   Export as ASCII (default is binary for speed and size). This option sometimes solves compatibility issues.
-fbxExpOutDir (-fod) string multi-use directory where the FBX files will be baked. It is possible to specify one directory per Crowd Render Proxy (else all the files will be baked in the first specified directory)
-fbxExpOutMode (-fom) int   FBX Bake mode: starts with 0, in the same order than in the Simulation Baker

Alembic Flags

These parameters are relative to the Alembic files bake of the Simulation Baker:

Long name (short name) Argument types Properties Description
-abcExpEnabled (-ben) bool   if true, the simulation caches will be baked in Alembic
-abcExpOutDir (-bod) string multi-use directory where the Alembic files will be baked. It is possible to specify one directory per Crowd Render Proxy (else all the files will be baked in the first specified directory)
-abcExpOutMode (-bom) int   Alembic Bake mode: starts with 0, in the same order than in the Simulation Baker

Arnold Flags

These parameters are relative to the Arnold .ass files of the Simulation Baker:

Long name (short name) Argument types Properties Description
-arnExpEnabled (-aen) bool   if true, the simulation cache files will be baked in Arnold .ass
-arnExpOutDir (-aod) string   directory where the Arnold .ass files will be baked

V-Ray Flags

These parameters are relative to the V-Ray .vrscene files of the Simulation Baker:

Long name (short name) Argument types Properties Description
-vrayExpEnabled (-ven) bool   if true, the simulation cache files will be baked in V-Ray .vrscene
-vrayExpOutDir (-vod) string   directory where the V-Ray .vrscene files will be baked
-vrayDcc (-vdc) int   DCC used to render the baked V-Ray files: starts with 0, in the same order than in the Simulation Baker

Renderman Flags

These parameters are relative to the Renderman .rib files of the Simulation Baker:

Long name (short name) Argument types Properties Description
-ribExpEnabled (-ren) bool   if true, the simulation cache files will be baked in .rib
-ribExpOutDir (-rod) string   directory where the .rib files will be baked
-ribPlugin (-rpg) int   name of the Crowd RenderMan plugin to use: 0 for glmCrowdRMSPlugin, 2 for glmCrowdGuerillaPlugin

Return Value

This command returns nothing

MEL Examples

// bake Simulation Cache files as FBX files only between frame 1 and 100
glmCrowdSimulationBaker -startFrame 1 -endFrame 100 -renderProxyNode "renderProxyShape1" -fbxExpEnabled 1 -fbxExpOutDir "C:/bake" -fbxExpOutMode 0;

Python Examples

import maya.cmds as cmds
// bake Simulation Cache files as FBX files only between frame 1 and 100
cmds.glmCrowdSimulationBaker(startFrame=1, endFrame=100, renderProxyNode="renderProxyShape1", fbxExpEnabled=True, fbxExpOutDir="C:/bake", fbxExpOutMode=False)