blender/release/scripts/vertexpaint_gradient.py
Tom Musgrove 898fccf463 = line ending fix =
these files all had non unix line endings...
2007-01-18 08:39:31 +00:00

29 lines
601 B
Python
Executable File

#!BPY
"""
Name: 'VCol Gradient...'
Blender: 241
Group: 'VertexPaint'
Tooltip: 'Click on the start and end grad points for the mesh for selected faces.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__version__ = "0.1"
import mesh_gradient
import Blender
def main():
scn= Blender.Scene.GetCurrent()
ob= scn.getActiveObject()
if not ob or ob.getType() != 'Mesh':
Blender.Draw.PupMenu('Error, no active mesh object, aborting.')
return
mesh_gradient.vertexGradientPick(ob, 1)
if __name__ == '__main__':
main()