Forum: Poser Python Scripting


Subject: best way to restrict to Mil4 figures

grichter opened this issue on Feb 09, 2011 · 7 posts


PhilC posted Thu, 10 February 2011 at 4:48 AM

I would use this method:-

import poser
import os
scene = poser.Scene()
for fig in scene.Figures():
    geomFile = os.path.split(fig.GeomFileName())[1]
    if geomFile == "blMilMan_m4b.obj":
        print "%s based on %s IS an M4 figure" % (fig.Name(),geomFile)
    else:
        print "%s based on %s IS NOT an M4 figure" % (fig.Name(),geomFile)