PDA

View Full Version : Scripting help


grendizer
10-16-2002, 10:56 AM
What I need is a script that will return the list of the selected objects.

- If the selection is ONE object, the script would return the name of the object.
- If the selection is several mutli selected object, the script would return the name of these objects.
- If the selection is a group, the script would return the name of all objects in the group.
- If the selection is a branch selection, the script would return the name of all objects in the branch selection.

Is it possible and what command should I study to get that?
I am not asking for the whole script, just lead me to the commands to be used, thanks!

:cool:

ggg
10-16-2002, 01:51 PM
set selected = GetValue( "SelectionList" )
for each oItem in selected
logmessage oItem.name
next

an idea is one can enumerate through objects using something like do until children <0 or go through parents too

Kim sent me on a mission to understand enumerate last week so I'm no pro, but its likley what you need.

grendizer
10-19-2002, 06:02 PM
Thanks G, I'll try this :scream:

CGTalk Moderation
01-13-2006, 08: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.