Vizard 7 » Command Index » Vizard modules » viz » <viz>.getEventID
7.7

<viz>.getEventID

Generate a unique event ID given a name

<viz>.getEventID(  
name  
)  
name
The name of the event you want to generate

Remarks

This command will generate a unique event ID given the specified name. If the name given corresponds to an existing event name, then the existing event ID will be returned. This command is usefull for generating custom events that other users can listen for.

Return Value

ID of the event

Example

MY_CUSTOM_EVENT = viz.getEventID('MyEventName')

See also

<viz>.getCurrentEvent
<viz>.getEventName
<viz>.getNumHandlers
<viz>.postEvent
<viz>.postFunctionCall
<viz>.sendEvent