PDA

View Full Version : MEL: How can I Get the number of objects selected??


nelsonteixeira
01-08-2003, 11:17 PM
How can I Get the number of objects selected and assign them to a variable??

For example I have 8 spheres in the scene and select 3 of them.
I want assign the value 3 to a variable.

Thanx in advance!!

bigfatMELon
01-09-2003, 02:08 AM
string $sel[] = `ls -sl`;
int $foo = size($sel);

-jl

nelsonteixeira
01-09-2003, 11:49 AM
Thanks! :thumbsup:

CGTalk Moderation
01-14-2006, 02:00 AM
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.