Notifications
Clear all

[Closed] hlist group name

I’m sure it’s very simple but I am very poor at scripting.

I am using the” max tool hlist ” cmd to bring up the selection dialog.
Then I select the object – dialog closes and I take the name of the object and insert into my dialog using “$.name”

however this doesn’t work with groups.

How do you return the name of a group?

I’ve rummaged around and just can’t fnd the appropriate syntax anywhere.

[size=2]help greatly appreciated[/size]
[size=2][/size]
[size=2]El-d
[/size]

2 Replies

Look up SelectByName() in the help. That allows you to select scene objects by name and return an array containing them all.

The following code will let you select objects then print their names to the listener.


 (
 objs = selectByName()
 for obj in objs do format "%
" obj.name
 )
 

You are a scholar and a gent.

Thanks

El-d