Sets one element of the MFTime event-in slot.
Declaring type: EventInMFTime
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void Set1Value (
        int index,
        double value
) 
Parameters
index
The index of the element, starting at 0.
value
The new time value. This is a double value containing the number of seconds since January the 1st, 1970, 00:00:00 GMT.
Collapse/Expand Example
The following example demonstrates how to write a timestamp into the first element of 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.Set1Value(0, currentTime);