property action

(r/w) string action;

Typ

Zugriff

This property is used to get and set the action for a command.
function onSample()
{
    var commandGroup = scene.getCommandGroupById("myCmdGrpId");
    if (commandGroup)
    {
        var command = commandGroup.getCommandById("myCmdId");
        if (command)
        {
            command.action = "myNewActionMethod();";
        }
    }
}