[Bf-blender-cvs] CVS commit: blender/release/scripts/bpymodules BPyAddMesh.py

Campbell Barton cbarton at metavr.com
Mon Apr 2 20:51:17 CEST 2007


campbellbarton (Campbell Barton) 2007/04/02 20:51:17 CEST

  Added files:
    blender/release/scripts/bpymodules BPyAddMesh.py 
  
  Log:
  This script 2 functions for use with the add mesh slot in the menu.
  
  *add_mesh_simple* - add a mesh from vert/edge/face data.
  It deals with setting the mesh rotation and location based on the cursor and view rotation, vertex and object selection etc.
  so adding a python object works just like other blenders internal add functions, in editmode and object mode.
  
  *write_mesh_script* - writes a Py script containing the active mesh, this can be put in the user scripts dir so users can define their own objects in the addd menu.
  
  Currently neither of these are accessed by the user however heres a script that uses add_mesh_simple and was written with write_mesh_script.
  http://members.optusnet.com.au/cjbarton/add_mesh_teapot.py



More information about the Bf-blender-cvs mailing list