Returns one element of a MFTime event-out slot.
C# |
---|
public abstract double Get1Value (
int index
) |
The following example gets the first value of an "timestamps_changed"
event-out slot of a Script node and prints it to the console:
C# |
---|
Vrml.EAI.Node script = ...;
Vrml.EAI.Field.EventOutMFTime timestamps_changed = (Vrml.EAI.Field.EventOutMFTime)script.GetEventOut("timestamps_changed");
System.DateTime baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
System.Console.WriteLine(baseTime.AddSeconds(timestamps_changed.Get1Value(0)).ToLocalTime());
|