Rewrote script a blender plug in