= line ending fix =
[blender.git] / release / scripts / vertexpaint_gradient.py
1 #!BPY
2 """
3 Name: 'VCol Gradient...'
4 Blender: 241
5 Group: 'VertexPaint'
6 Tooltip: 'Click on the start and end grad points for the mesh for selected faces.'
7 """
8
9 __author__ = ["Campbell Barton"]
10 __url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
11 __version__ = "0.1"
12
13 import mesh_gradient
14 import Blender
15
16 def main():
17         scn= Blender.Scene.GetCurrent()
18         ob= scn.getActiveObject()
19         
20         if not ob or ob.getType() != 'Mesh':
21                 Blender.Draw.PupMenu('Error, no active mesh object, aborting.')
22                 return
23         
24         mesh_gradient.vertexGradientPick(ob, 1)
25         
26         
27 if __name__ == '__main__':
28         main()