3DTrue - 3D Tools & Software
3DTrue - 3D Tools & Software
 
3D
3D
3D Boards Home Previous Topic - Welcome to the New Boards Topic 12 Next Topic - Hollywood Fantasy setup
3DTrue Message Boards Reply To Topic / New Topic / Search
Thread 12 Topic - 12 My First Python Script
jtrue
jtrue
Asheville NC
Aug/15/04 23:30:52
THREAD:12 ID:12My First Python Script...Here's the code...

#-------------------------------------------------
# Flatten all the vertices in the current scene along the z index...
#-------------------------------------------------
import poser
scene = poser.Scene()
figs = scene.Figures()
for fig in figs:
print fig.Name()
actors = fig.Actors()
for actor in actors:
if (actor.Geometry()):
print actor.Name()
geom = actor.Geometry()
verts = geom.Vertices()
for vert in verts:
vert.SetX(vert.X())
vert.SetY(vert.Y())
vert.SetZ(0)
scene.DrawAll()

Reply To Topic
All Site Content © 2006 3dtrue.com / Hits / Web Hosting by Gigfoot