def get_val_string(input):
    """
    String for a value, formatted for CSycles
    """
    val = ""
    if input.type == 'VALUE':
        val = "{0: .3f}f".format(input.default_value)
    elif input.type in ('RGBA', 'VECTOR'):
        val = "new float4({0: .3f}f, {1: .3f}f, {2: .3f}f)".format(
            input.default_value[0],
            input.default_value[1],
            input.default_value[2]
        )
    return val