1b94d1bfc6272cb3a2e42574cb0b5e57a1367a12
[blender.git] / release / scripts / vertpaint_gradient_stub.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 __vertex_gradient__
14 reload(__vertex_gradient__)
15 import Blender
16
17 def main():
18         scn= Blender.Scene.GetCurrent()
19         ob= scn.getActiveObject()
20         
21         if not ob or ob.getType() != 'Mesh':
22                 Blender.Draw.PupMenu('Error, no active mesh object, aborting.')
23                 return
24         
25         __vertex_gradient__.vertexGradientPick(ob, 1)
26         
27         
28 if __name__ == '__main__':
29         main()