yongbin Posted November 23, 2013 Share Posted November 23, 2013 With some Python scripts, I can get list of objects in a group. I guess there is an expression way. But I can't find it. If you know this, please tell me. Thank you. Quote Link to comment Share on other sites More sharing options...
yongbin Posted November 23, 2013 Author Share Posted November 23, 2013 (edited) Yay, I found it. dopobjectlist($DOPNET, "groupname", 0) # or 1 if you want object name[/CODE]And python version.[CODE]sim = hou.pwd().simulation()grp = sim.findRelationship("groupname")recs = grp.records("ObjInGroup")objs = [str(r.field("objid")) for r in recs] # or "objname"return " ".join(objs)[/CODE]If there is shorter version there, please let me know! Edited November 23, 2013 by yongbin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.