[tuhopuu-cvs] CVS commit: tuhopuu2/source/blender/python/api2_2x NMesh.c Object.c

Campbell Barton cbarton at metavr.com
Fri Aug 6 18:38:40 CEST 2004


ideas_man (Campbell Barton) 2004/08/06 18:38:40 CEST

  Modified files:
    tuhopuu2/source/blender/python/api2_2x NMesh.c Object.c 
  
  Log:
  Now works when oops is not initialized (returns none in this situation)
  
  Meshs can also be selected too
  
  mesh.sel = 1 # Only affects oops.
   and
  mesh.oopsloc = (1.32, 20.0)
  
  Just like objects.
  
  TEst with rthis script, select a mesh obj  and watch the oops win- funky animation.
  well- An animation.
  __
  
  from Blender import *
  ob = Object.GetSelected()[0]
  m = ob.getData()
  
  print m.oopsloc
  print ob.oopsloc
  
  #ob.oopsloc = (1,110)
  for x in range(100):
    Window.Redraw(Window.Types['OOPS'])
    m.oopsloc = (0.2 * x, 0.2 *x )
  
  for x in range(100):
    Window.Redraw(Window.Types['OOPS'])
    ob.oopsloc = (0.2 * x, 0.2 *x )
  
  Revision  Changes    Path
  1.2       +2256 -1249tuhopuu2/source/blender/python/api2_2x/NMesh.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/tuhopuu2/source/blender/python/api2_2x/NMesh.c.diff?r1=1.1&r2=1.2&cvsroot=tuhopuu>
  1.3       +20 -13    tuhopuu2/source/blender/python/api2_2x/Object.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/tuhopuu2/source/blender/python/api2_2x/Object.c.diff?r1=1.2&r2=1.3&cvsroot=tuhopuu>



More information about the tuhopuu-cvs mailing list