Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
from Blender import Draw, sys
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')
# File I/O messages
def Error_NoFile(path):
'''True if file missing, False if files there
Use simply by doing...
if Error_NoFile(path): return
'''
if not sys.exists(sys.expandpath(path)):
Draw.PupMenu("Error%t|Can't open file: " + path)
return True
return False
def Error_NoDir(path):
'''True if dirs missing, False if dirs there
if Error_NoDir(path): return
Draw.PupMenu("Error%t|Path does not exist: " + path)
def Warning_SaveOver(path):
'''Returns - True to save, False dont save'''
if sys.exists(sys.expandpath(path)):
ret= Draw.PupMenu('Save over%t|' + path)
if ret == -1: