property commands

(r/o) object commands;

Typ

Zugriff

This property returns a basics::array containing all the command objects in the commandGoup. Property returns null if no command object exists
function onSample()
{
    var commandGroup = scene.getCommandGroupById("myCmdGrp");
    if (commandGroup)
    {
        var cmdArray = commandGroup.commands;
        for (var x = 0; x < cmdArray.count; ++x)
        {
            var cmd = cmdArray.getValue(x);
            if (cmd)
            {
                shell.print("Command id = " + cmd.id);
                shell.print("Command action = " + cmd.action);
            }
        }
    }
}