property keys

(r/o) object keys;

Typ

Zugriff

This property returns a basics::array containing all the key objects in the keyGoup. Property returns null if no key object exists
function onSample()
{
    var keyGroup = scene.getKeyGroupById("keyGrp");
    if (keyGroup)
    {
        var keyArray = keyGroup.keys;
        for (var x = 0; x < keyArray.count; ++x)
        {
            var key = keyArray.getValue(x);
            if (key)
            {
                shell.print("Key id = " + key.id);
                shell.print("Key action = " + key.action);
            }
        }
    }
}