private void RemoveUID() { if (!string.IsNullOrWhiteSpace(FLastAddress)) { GroupMap.RemoveEntry(FLastAddress); } }
//called when data for any output pin is requested public void Evaluate(int SpreadMax) { var map = GroupMap.GetEntries(); FPath.SliceCount = map.Count(); FGroup.SliceCount = map.Count(); int i = 0; foreach (var entry in map) { FPath[i] = entry.Item1; FGroup[i] = entry.Item2; i++; } }
//called when data for any output pin is requested public void Evaluate(int SpreadMax) { if (FUID.IsChanged) { //TODO: instead of removing/re-adding, simply rename grouplabel RemoveUID(); FOutput.SliceCount = 1; if (!string.IsNullOrWhiteSpace(FUID[0])) { string path; FPluginHost.GetNodePath(false, out path); var ids = path.Split('/'); var address = string.Join("/", ids.Take(ids.Length - 1)); FLastAddress = address; GroupMap.AddEntry(address, FUID[0]); FOutput[0] = address; } } //FLogger.Log(LogType.Debug, "Logging to Renderer (TTY)"); }