Scripting help

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 10 October 2002   #1
Talking Scripting help

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!

 
Old 10 October 2002   #2
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.
 
Old 10 October 2002   #3
Thanks G, I'll try this
 
Old 01 January 2006   #4
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:28 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.