View Full Version : 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.
help greatly appreciated
09-09-2005, 12:03 PM
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 "%\n" obj.name
You are a scholar and a gent. :thumbsup:
09-09-2005, 01:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.