glmCrowdSimulationBaker

The glmCrowdSimulationBaker commands bakes Simulation Cache files linked in a Crowd Render Proxy node as Renderer specific scene files (.ass, .vrscene, .rib, .mi...) or baked geometry FBX / Alembic files. This command is called by the Simulation Exporter.
glmCrowdSimulationBaker [-startFrame int] [-endFrame int] [-renderProxyNode string]

[-fbxExpEnabled bool] [-fbxExpAscii bool] [-fbxExpOutDir string] [-fbxExpOutMode int]

[-abcExpEnabled bool] [-abcExpOutDir string] [-abcExpOutMode int]

[-arnExpEnabled bool] [-arnExpOutDir string]

[-vrayExpEnabled bool] [-vrayExpOutDir string]

[-ribExpEnabled bool] [-ribExpOutDir string] [-ribPlugin string]

[-mentalRayExpEnabled bool] [-mentalRayExpOutDir string]

Flags

Global Flags

These parameters are relative to the global Simulation Exporter 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

FBX Flags

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

Long name (short name) Argument types Properties Description
-fbxExpEnabled (-fen) bool   if true, the simulation caches will be baked in FBX
-fbxExpOutDir (-fod) string multi-use directory where the FBX files will be exported. It is possible to specify one directory per Crowd Render Proxy (else all the files will be exported in the first specified directory)
-fbxExpOutMode (-fom) int   FBX export mode: 0 for Export Geometry in one file, 1 for Export Geometry in one file per frame, 2 for Export Geometry in one file per Entity, for Export, 3 for Export Animation in one file, 4 for Export Animation in one file per Entity

Alembic Flags

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

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 exported. It is possible to specify one directory per Crowd Render Proxy (else all the files will be exported in the first specified directory)
-abcExpOutMode (-bom) int   Alembic export mode: 0 for Export Geometry In One File, 1 for Export Geometry In One File Per Frame

Arnold Flags

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

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 exported

V-Ray Flags

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

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 exported

Renderman/3Delight Flags

These parameters are relative to the Renderman/3Delight .rib files of the Simulation Exporter:

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 exported
-ribPlugin (-rpg) int   name of the Crowd RenderMan plugin to use: 0 for glmCrowdRMSPlugin, 1 for glmCrowd3DelightPlugin, 2 for glmCrowdGuerillaPlugin

Mental Ray Flags

These parameters are relative to the Mental Ray .mi files of the Simulation Exporter:

Long name (short name) Argument types Properties Description
-mentalRayExpEnabled (-men) bool   if true, the simulation cache files will be baked in Mental Ray .mi
-mentalRayExpOutDir (-mod) string   directory where the Mental Ray .mi files will be exported

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 0 -fbxExpOutDir "C:/bake" -fbxExpOutMode 0;