forked from bartvdbraak/blender
9a168d8285
Speedup for bpymesh_redux (poly reducer) with reducing vertex weights. use list2MeshWeight and meshWeight2List. renamed vertex gradient files Removed reload()'s - 3ds_import.py - mesh_cleanup.py - mesh_poly_reduce.py - vertexpaint_selfshadow_ao.py
28 lines
600 B
Python
Executable File
28 lines
600 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() |