View Full Version : hlist group name

09 September 2005, 01:52 PM
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 September 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"

09 September 2005, 01:00 PM
You are a scholar and a gent. :thumbsup:



CGTalk Moderation
09 September 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.