method setAttribute

bool setAttribute(string attribute,string value);

Argumente

Zurückgegebener Wert

This method sets the given attribute to the given value for the command.
function onSample()
{
    var command = scene.getCommandById("myCmdId");
    if (command)
    {
        command.setAttribute("value", "myAttributeValue");
    }
}