Vizard 7 » Command Index » Vizard modules » viznet » <viznet>.id
7.7

<viznet>.id

Generate unique event ID for viznet

<viznet>.id(  
name  
)  
name
Name of event

Remarks

This command will generate a unique event ID that can be used with viznet. This differs from the built-in viz.getEventID() command, in that it gaurantees the event name will always be mapped to the same ID across all machines. This is necessary when passing event IDs across networks.

Return Value

Event ID

Example

import viznet

MY_CUSTOM_EVENT = viznet.id('MyCustomEvent')