Script updated to last version of Blender