Peter Pauze opened this issue on Dec 20, 2021 ยท 10 posts
Y-Phil posted Sun, 02 January 2022 at 7:10 AM
Depending on the hierarchy of items of your scene, even searching in the Hierarchy window can be a nightmare.
If that helps you, here a little script I've written. It always starts the search by the Universe. Give it the name you're looking for, not case sensitive.
Tested on P11 and P12
import poser
def find_obj(obj_src, obj_name):
if not obj_src:
return None
if obj_name.lower() in obj_src.Name().lower():
return obj_src
for child in obj_src.Children() or []:
if obj_name.lower() in child.Name().lower():
return child
for child in obj_src.Children() or []:
check = find_obj(child, obj_name)
if check:
return check
return None
scene = poser.Scene()
try: universe = scene.Actors()[0]
except: universe = None
if universe:
dlg = poser.DialogTextEntry(False, "Find what?")
if dlg.Show():
what = dlg.Text()
res = find_obj(universe, what)
if not res:
poser.DialogSimple.MessageBox("'%s' not found" % what)
else:
scene.SelectActor(res)
๐ซ๐ฝ๐๐
(ใฃโโกโ)ใฃ
๐ฟ Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
๐ฟ Mac Mini M2, Sonoma 14.6.1, 16GB, 500GB SSD
๐ฟ Nas 10TB
๐ฟ Poser 13 and soon 14 โค๏ธ