Reference to a MFTime event-in slot.
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract class EventInMFTime :  EventIn
Collapse/Expand Remarks
Use this class to write values into MFTime event-in slots.
Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
The following example demonstrates how to write two timestamps into a "set_timestamps" field of a Script node:
C#
Vrml.EAI.Node script = ...;
Vrml.EAI.Field.EventInMFTime set_timestamps = (Vrml.EAI.Field.EventInMFTime)script.GetEventIn("set_timestamps");
System.DateTime baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
System.TimeSpan deltaTime = System.DateTime.UtcNow.Subtract(baseTime);
double currentTime = deltaTime.TotalSeconds;
set_timestamps.SetValue(new double[] { currentTime + 5.0, currentTime + 10.0 });