Support Board
Date/Time: Fri, 29 Nov 2024 02:33:32 +0000
Post From: Storing SCDateTime-data in a subgraph array?
[2023-03-19 03:55:11] |
Tony - Posts: 522 |
I found one of the possible solutions is to use 2 arrays of that subgraph, one for Date and one for TimeInSeconds, SCFloatArrayRef CustomDate = sc.Subgraph[0].Arrays[0]; SCFloatArrayRef CustomTimeInSeconds = sc.Subgraph[0].Arrays[1]; and to get the date and time for Index_N: SCDateTime DT = 1.0 * CustomDate[Index_N] + 1.0*CustomTimeInSeconds[Index_N] / 86400.0; It works, I am just hoping there is a simpler way of doing it. Date Time Of Last Edit: 2023-03-22 15:15:46
|