cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

toggling image visibility

labouzina
7-Bedrock

toggling image visibility

i am trying to toggle the visibility of an image and i am using this service to be refreshed every 5sec

var output = me.tests().Value;

if (output == 1)  {    

result = false;     

pause (2000);   

result = true; 

}


but it's not working and i can't understand what's the issue

any suggestions ?

3 REPLIES 3
PaiChung
22-Sapphire I
(To:labouzina)

try it with an autorefresh widget and remove the pause.

So you can have an expression widget that validates a value and says !value and also outputs that

add an auto refresh to fire that expression widget.

and just have those elements invisible.

that still doesn't work

and i still need to be able to set the time between the toggles because  i have more than one image widget that i want them to appear in a curtain sequence.

PaiChung
22-Sapphire I
(To:labouzina)

I think ability to set the Time period and ability to show something in a curtain is two different things.

To do a 'curtain' style, we recommend using an animated gif sequence into a media entity.

If you need to show images in certain sequences, you can use the expression widget to track where in the sequence you are and use validation widgets to then show the proper items.

Announcements


Top Tags