Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-07-06 17:34:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-07-06 17:34:53 +0400
commit14a67d2a3ca1849ecb1bf2e5d3b9622e0bd32651 (patch)
tree236b2e36ca4fed1526ef9ba1601d8c2682d8eb11 /release/scripts/vertpaint_gradient_stub.py
parentd13ad8fe9456aed443086c2c0766941271c91eca (diff)
Added a vertex gradient tool. got the ok from willian to add if its well tested, can do vertex gradient and weight gradient- uses __vertex_gradient__.py which manages to do both.
Diffstat (limited to 'release/scripts/vertpaint_gradient_stub.py')
-rwxr-xr-xrelease/scripts/vertpaint_gradient_stub.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/release/scripts/vertpaint_gradient_stub.py b/release/scripts/vertpaint_gradient_stub.py
new file mode 100755
index 00000000000..1b94d1bfc62
--- /dev/null
+++ b/release/scripts/vertpaint_gradient_stub.py
@@ -0,0 +1,29 @@
+#!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 __vertex_gradient__
+reload(__vertex_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
+
+ __vertex_gradient__.vertexGradientPick(ob, 1)
+
+
+if __name__ == '__main__':
+ main() \ No newline at end of file