Support Board
Date/Time: Sun, 19 Jan 2025 06:40:23 +0000
Post From: Referencing subgraph values...
[2018-03-18 06:33:35] |
User895355 - Posts: 55 |
I'm referencing a study(ID:1) which has two values. *That* study says the values are SG2, and SG3. The code excerpt below is returning nothing. What am I missing? SCInputRef Val1 = sc.Input[0]; SCInputRef Val2 = sc.Input[1]; -- Val1.SetStudySubgraphValues(1, 2); <- Is this correct? Is the function looking for a zero-based value, or SG2, SG3 ONE-based value? Val2.SetStudySubgraphValues(1, 3); <- ...and here? -- SCFloatArray v1; sc.GetStudyArrayUsingID(Val1.GetStudyID(), Val1.GetSubgraphIndex(), v1); SCFloatArray v2; sc.GetStudyArrayUsingID(Val2.GetStudyID(), Val2.GetSubgraphIndex(), v2); -- and for debugging... SCString msg; msg.Format("Debug: %f : %f", v1[0], v2[0]); <-- this is returning nothing sc.AddMessageToLog(msg, 1); |