06-07-2023 02:41 AM
I'm not sure if I can state this clearly, but will try my best.
Assume I have some clusters (in same type def.) containing several elements. In this scenario, I create an event case and set a event that can be triggered when one of the boolean from the cluster is pressed. Is there any way to know which cluster is the pressed boolean belongs to? Please refer to the picture for a sample.
06-07-2023 03:02 AM
You can use 'CtrlRef' on the left and connect it to a property node returning the control label.
Or use two event cases one for each control.
06-09-2023 08:05 AM
I strongly recommend the suggestion to have two Event cases, one for Cluster (and put the Cluster control in this case) and one for Cluster2 (and put the Cluster 2 control in this second case). This is especially important with Latched Booleans, which take their Default value when read. Putting the two Controls in the same Event case can lead to some hard-to-find Race conditions (unlikely, but why take a chance?).
Bob Schor
06-09-2023 08:55 AM
If you use the Event "CLUSTER - ALL EMENTS" instead of Cluster.Boolean
Then the Property Laber.Text from the CtrlRef will return the Cluster Label, and you will know witch cluster the boolean came from .