glmAssetMeshTools

glmAssetMeshTools command provides a way to add, remove, shuffle mesh association for entities.

glmAssetMeshTools [-editMeshAssociations] [-meshNames] [entityId integer] [-shuffle] [-addMesh] [-removeMesh] [-meshAssociationsId] [-renderingTypeIdx integer] [-clothIndice integer] [-renderCloth boolean] [-crowdFields string] [-cacheName string] [-cacheFileDir string] [-characterFiles string]

Flags

Long name (short name) Argument types Properties Description
-editMeshAssociations (-ema)     specifies if the command will edit mesh association
-meshNames(-mn)     specifies if command queries mesh names
-entityId(-eid) integer multi-use, mandatory(edit) specifies the entity Ids concerned by the command
-shuffle (-sh)     specifies if the mesh association should be shuffled
-addMesh (-am)     specifies if meshes should be added
-removeMesh (-rm)     specifies if meshes should be removed
-meshAssociationsId (-mai) integer multi-use, mandatory(edit) specifies the mesh Id to be removed or added
-renderingTypeIdx (-rti) integer mandatory(edit) specifies the rendering Type concerned by the command
-clothIndice (-ci) integer   specifies wich meshes are cloths
-renderCloth (-rc) boolean   specifies if cloth mesh should be rendered
-crowdFields (-cf) string mandatory(query) specifies the crowdfields names separated by a ;
-cacheName (-cn) string mandatory(query) specifies the cache name
-cacheFileDir (-cd) string mandatory(query) specifies the cache file directories separated by a ;
-characterFiles (-gch) string mandatory(query) specifies the character file paths separated by a ;

MEL Examples

 
// remove mesh association 8 for entities 1001 of cacheProxyShape1
glmAssetMeshTools -editMeshAssociations -cacheName "cacheProxyShape1" -entityId 1001 -removeMesh -meshAssociationsId 8;
 
// shuffle mesh association for entities 4001 of cacheProxyShape1
glmAssetMeshTools -editMeshAssociations -cacheName "cacheProxyShape1" -entityId 4001 -shuffle ;