property keyCount

(r/o) int32 keyCount;

Typ

Zugriff

This property returns back the total number of key objects contained in this keyGroup.
function onSample()
{
    var keyGroup = scene.getKeyGroupById("keyGrp");
    if (keyGroup)
    {
        shell.print("There are " + keyGroup.keyCount + " keys in this keyGroup.");
    }
}