Forum: Poser Python Scripting


Subject: 3D location of voxels

pauldol opened this issue on Oct 12, 2011 · 12 posts


PhilC posted Wed, 12 October 2011 at 9:06 AM

Python will give you acces to the object's geometry:-

scene = poser.Scene()
actor = scene.CurrentActor()
geom = actor.Geometry()
verts = geom.Vertices()
worldverts = geom.WorldVertices()

print "Local Vertices:-"
print "----------------------------"
i = 0
while i < 10:
   print verts[i].X(),
   print verts[i].Y(),
   print verts[i].Z()
   i = i + 1

print

print "World Vertices:-"
print "----------------------------"
i = 0
while i < 10:
   print worldverts[i].X(),
   print worldverts[i].Y(),
   print worldverts[i].Z()
   i = i + 1

Does that help any?