Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
blender python script help
08-12-2008, 03:57 PM,
#2
 
i've made some progress. the following script:

Code:
import Blender
from Blender import Mesh
myObj = Blender.Object.GetSelected()[0]
sel=[v for v in myObj.getData().verts if v.sel==1]
for v in sel:
    print "x,y,z: ", v[0], v[1], v[2]

will print the coordinates of the selected vertices but they get printed in the order they were present in the object and not the order i selected them (doesn't matter what order i selected them in, the output is always the same). any idea how to get the vertives in the order i selected them?

--alex--
Reply


Messages In This Thread
blender python script help - by alex25 - 08-12-2008, 01:23 PM
[No subject] - by alex25 - 08-12-2008, 03:57 PM
[No subject] - by alex25 - 08-12-2008, 07:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-13-2008, 10:05 PM
[No subject] - by alex25 - 08-15-2008, 02:29 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-16-2008, 12:56 PM
[No subject] - by alex25 - 08-17-2008, 02:37 PM
[No subject] - by osteron - 11-03-2008, 03:52 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-03-2008, 09:39 PM
[No subject] - by osteron - 11-04-2008, 01:09 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-07-2008, 11:12 AM
[No subject] - by osteron - 11-09-2008, 10:46 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-09-2008, 01:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)