def string_to_maya_value(string):
    """ Convert a value saved in string to a numerical type understood by maya
    """
    if string.isdigit():
        return int(string)
    if '.' in string or ',' in string:
        if string.replace(',', '').replace('.', '').isdigit():
            return float(string)
    return string