Forum: Poser - OFFICIAL


Subject: Is there a script for applying the same material to several objects in a scene

DreamlandModels opened this issue on Sep 08, 2012 · 18 posts


markschum posted Sun, 09 September 2012 at 12:06 AM

a script should not be difficult if all the props have an identifiable name.

something like this should work

 

import poser

scene = poser.Scene()

actors = scene.Actors()

for actor in actors:

   if actor.IsProp() and actor.Name().Startswith("Forest");

       actor.LoadMaterialCollection("/runtime/texture/myfolder/mymaterial.mc6")

print"Done"