I have a script that snaps the position of cups to a specific point per unit of time over the conveyor to simulate sequential movement. (All Cups are identical to each other)
I then have components (level indicator and weighing scale) that is only visible or only works when a cup is at a certain X or Y range. It works fine until I reached the 5th cup where it is not recognized by the components anymore. When I stop preview mode to reposition the cup, it then gets recognized (as shown in the screen recording).
Shown below is the attached expression to the visible property of the level indicator above of the weighting scale:
(
{Root Container.Cup1.relX} >= 750 && {Root Container.Cup1.relX} <= 800
) ||
(
{Root Container.Cup2.relX} >= 750 && {Root Container.Cup2.relX} <= 800
) ||
(
{Root Container.Cup3.relX} >= 750 && {Root Container.Cup3.relX} <= 800
) ||
(
{Root Container.Cup4.relX} >= 750 && {Root Container.Cup4.relX} <= 800
) ||
(
{Root Container.Cup5.relX} >= 750 && {Root Container.Cup5.relX} <= 800
) ||
(
{Root Container.Cup6.relX} >= 750 && {Root Container.Cup6.relX} <= 800
) ||
(
{Root Container.Cup7.relX} >= 750 && {Root Container.Cup7.relX} <= 800
) ||
(
{Root Container.Cup8.relX} >= 750 && {Root Container.Cup8.relX} <= 800
) ||
(
{Root Container.Cup9.relX} >= 750 && {Root Container.Cup9.relX} <= 800
) ||
(
{Root Container.Cup10.relX} >= 750 && {Root Container.Cup10.relX} <= 800
)