Forum: Poser 12


Subject: Any way to change order in props list?

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)



Now, if someone could explain how to present a bloc of code in this new interface, I'll be more than happy ๐Ÿ˜…

๐’ซ๐’ฝ๐“Ž๐“


(ใฃโ—”โ—กโ—”)ใฃ

๐Ÿ‘ฟ 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 โค๏ธ