glmSaveAsCustomXXX
glmSaveAsCustomBehavior
The function glmSaveAsCustomBehavior allows to save a Behavior Graph or a subset of it as a Behavior template file.
proc glmSaveAsCustomBehavior(string $currentNode, string $types[], string $extension, string $directory)
Parameters
Name | Argument types | Properties | Description |
currentNode | string | Name of the Behavior, Behavior Operator or Behavior Container to save | |
types | string | multi-use | Type of connected objects not to save along within the Behavior template. Available values are:
locator, CrowdTargetLocator, mesh, VectorFieldLocator, PaintedZoneLocator, particle, nParticle, PopulationToolLocator, CrowdEntityTypeNode, CrowdGroupEntityTypeNode |
extension | string | Extension of the Behavior template. This extension is only used for icon display in the Behavior Editor. Recommended default value is octma | |
directory | string | Directory in which the Behavior template file will be saved |
Return Value
The command returns nothing.
Mel Example
glmSaveAsCustomBehavior("beContainerShape1", {}, "octma", "C:/customBehaviors/");
glmSaveAsCustomTrigger
The function glmSaveAsCustomTrigger allows to save a Trigger Graph or a subset of it as a Trigger template file.
proc glmSaveAsCustomTrigger(string $currentNode, string $extension, string $directory)
Parameters
Name | Argument types | Properties | Description |
currentNode | string | Name of the Trigger, Trigger Operator or Trigger Container to save | |
extension | string | Extension of the Trigger template. This extension is only used for icon display in the Behavior Editor. Recommended default value is tctma | |
directory | string | Directory in which the Trigger template file will be saved |
Return Value
The command returns nothing.
Mel Example
glmSaveAsCustomTrigger("beTriggerContainerShape1", "tctma", "C:/customTriggers/");