Post #1054: 
works fine when I run from the text editor but says this when I use pme with this command ‘execute_script(“scripts/vertex_color_objects_gradient_blue.py”)’
NameError: name ‘Vector’ is not defined
Hi, FrankieH.
Copy this line to remap function:
def remap(current, lower_old, upper_old, lower_new, upper_new):
from mathutils import Color, Vector
Will try to fix this issue in the next version.