Sets the elements of the MFTime event-in slot.
Declaring type: EventInMFTime
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        double[] value
) 
Parameters
value
The new time values. These are double values containing the number of seconds since January the 1st, 1970, 00:00:00 GMT.
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 });