Monogram API
Search…
⌃K

Specify Inputs

Inputs are actions or parameters in your application that Monogram can trigger or change. To define inputs, create an inputs.json file adjacent to the config.json you made in the last step.
path/to/myphotoeditor.monogram
├── config.json
└── inputs.json
The contents of inputs.json represents your app's capabilities.
Open inputs.json and add the following:
[
{
"name": "Auto Tone"
},
{
"name": "Next Photo"
},
{
"name": "Previous Photo"
},
{
"name": "Likes",
"step": 1
},
{
"name": "Exposure",
"range": [-5, 5],
"step": 0.01,
"reset": 0
},
{
"name": "Saturation",
"range": [-100, 100],
"step": 1,
"reset": 0
}
]
Monogram automatically determines the kind(s) of modules that can be assigned to trigger the Inputs you provide in inputs.json. For more details, see Inputs and Actions.