Select All / Select Nothing button

function OnClick(clickData)
{
	var cmd = clickData.func.command;
	cmd.deselect = false;

	if (clickData.func.sourcetab.selected.count == clickData.func.sourcetab.all.count)
	{
		cmd.RunCommand("Select NONE");
	}
	else
	{
		cmd.RunCommand("Select ALL");
	}
}
1 Like