0
Answered

IR.GetDevices()

Wouter van der Post 2 years ago updated by Vladimir Ovchinnikov 2 years ago 6

Is it possible in JS to get all devices in a project, for example with a function like "IR.GetDevices()"?

It could return an array with the device names so I can use "IR.GetDevice(name)" to get properties of each device.

Under review

Hello.

var devices = IR.GetDevices();
var name_1 = devices[0].Name;
var name_2 = devices[1].Name;
IR.Log("1 device: " + name_1);
IR.Log("2 device: " + name_2);

Ok, so it already exists, but it's not documented?

https://dev.iridi.com/JS_Handbook/en