def melSelectCmd(paths):
    """
    Create the mel command to select the given objects by passing them as a single array.
    """
    cmd = '''string $obj[];'''
    for i, path in enumerate(paths):
        cmd = cmd + '$obj[%s] = "%s";' % (i, path)
    cmd = cmd + 'select $obj;'
    return cmd