def getScalarsType(colouringOptions):
    """
    Return scalars type based on colouring options
    
    """
    # scalar type
    if colouringOptions.colourBy == "Species" or colouringOptions.colourBy == "Solid colour":
        scalarType = 0
    
    elif colouringOptions.colourBy == "Height":
        scalarType = 1
    
    elif colouringOptions.colourBy == "Charge":
        scalarType = 4
    
    else:
        scalarType = 5
    
    return scalarType