blender/release/scripts/bpymodules/BPyMessages.py
Campbell Barton 792114e476 removed image_bake_from_uvs and replaced it with a module that does all the work and 4 scripts accessable from the UV/Image menu.
- bake wire
- bake image
- bake vcol
- bake normals

Fitting all the options for these into 1 PupBlock was not good.

An example of 4 different baking made from these scripts

http://members.iinet.net.au/~cpbarton/temp.png
2006-07-29 07:14:11 +00:00

11 lines
370 B
Python

from Blender import Draw
def Error_NoMeshSelected():
Draw.PupMenu('ERROR%t|No mesh objects selected')
def Error_NoMeshActive():
Draw.PupMenu('ERROR%t|Active object is not a mesh')
def Error_NoMeshUvSelected():
Draw.PupMenu('ERROR%t|No mesh objects with texface selected')
def Error_NoMeshUvActive():
Draw.PupMenu('ERROR%t|Active object is not a mesh with texface')