Wednesday, September 30, 2009

MEL: Print Size Of Your Current Selection, Or Print Your Current Selection

There are a few different ways to print out the size of your selection.

To print the size of your selection:

// Simply use the size command combined with the return of the list selected command
size(`ls -selection`) ;

To print what is currently selected:

// Use the LS command to list your selection
ls -selection ;

// Or print it... (same thing)
print `ls -selection` ;
// What about vertices? (faces, etc.)
// ls -selection ; will usually return a next to useless result with multiple verts selected.
// Instead add another flag, -flatten
ls -selection -flatten ;

Any questions? Please comment below.

0 comments:

Post a Comment