Using JSON inputs

How do you use JSON?

I’m trying to make a button turn an image widget on/off with the Visible attribute vis the appearance pin but can’t find any docs about how to ‘do the JSON’

Trying a lookup connected to a button with item 0 being {“Visible”:“0”} and item 1 being {“Visible”:“1”} with no joy. Also tried ‘Visibility’.

Exposing ‘visible’ as a pin on the image widget would be nicer, though. That way, presumably, ABOUT overlays can be created and clickable.

Have now found the Appearance Changer module…

Visible.mnprtz (187.4 KB)

The idea is that you don’t need to use JSON code directly. You can do it through the Appearance Changer instead.

That way, any parameter available in Appearance can be modified externally.

I’ll leave you an example.