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)
def main(): scn = Blender.Scene.GetCurrent() ob = scn.objects.active if not ob or ob.type != "Mesh": Blender.Draw.PupMenu("Error, no active mesh object, aborting.") return # MODE 0 == VCOL # MODE 1 == WEIGHT MODE = 0 mesh_gradient.vertexGradientPick(ob, MODE)
def main(): scn = Blender.Scene.GetCurrent() ob = scn.objects.active if not ob or ob.type != 'Mesh': Blender.Draw.PupMenu('Error, no active mesh object, aborting.') return # MODE 0 == VCOL # MODE 1 == WEIGHT MODE = 0 mesh_gradient.vertexGradientPick(ob, MODE)