Adding a 'solid wire' script.

http://members.optusnet.com.au/cjbarton/teapot.jpg
This commit is contained in:
2007-04-08 09:35:05 +00:00
parent 76420c2fec
commit 244c925421
4 changed files with 258 additions and 40 deletions

View File

@@ -70,7 +70,6 @@ def main():
# editmode if its enabled, we cant make
# changes to the mesh data while in editmode.
is_editmode = Window.EditMode()
if is_editmode: Window.EditMode(1)
Window.WaitCursor(1)
me = ob_act.getData(mesh=1) # old NMesh api is default
@@ -79,6 +78,9 @@ def main():
# Run the mesh editing function
my_mesh_util(me)
# Restore editmode if it was enabled
if is_editmode: Window.EditMode(1)
# Timing the script is a good way to be aware on any speed hits when scripting
print 'My Script finished in %.2f seconds' % (sys.time()-t)
Window.WaitCursor(0)