Scripting help

Become a member of the CGSociety

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

Thread Tools Display Modes
  10 October 2002
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!

  10 October 2002
set selected = GetValue( "SelectionList" )
for each oItem in selected

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.
  01 January 2006
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
Society of Digital Artists

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

All times are GMT. The time now is 02:57 AM.

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