View Full Version : selecting all the faces?

05 May 2003, 10:32 PM
I would like to select all of the faces on one selected subd object. The following code selects some faces but not all. How can I select all of the faces? Pretty please help me.



string $objList[] = `ls -sl`;

eval("select -r " + $objList[0]);

eval("select " + $objList[0] + ".smf[0:2][67108864]");


If this can work then I would include it in the subd UV script.

thank you for your time :thumbsup:

05 May 2003, 12:27 PM


05 May 2003, 03:38 PM
does anyone understand the .smf[0:2][67108864] notation? Is this a weird matrix or something?


05 May 2003, 10:31 AM
The <object>.smf[number][number] notation is how you designate faces of a subdivision surface.

If your object is called subdivSphere1 you can select all the faces by doing this:

select subdivSphere1.smf["*"]["*"];

-- Mark

05 May 2003, 01:44 PM

You don't understand the uv ordering of subd surfaces, by any chance? I'm looking for a 1-1 relationship between subd uvs and it's adaptive poly copy. if I knew how subd uvs were ordered it would help. I think they are ordered by face but the uvs seem to over lap at times.


05 May 2003, 03:50 PM
Does anyone how vertices are ordered on a subdivsion surface. I don't know much math so it be impossible for me to understand.

I find that the uvs go counter clock wise and tend to avoid touching on points that have already gone.

-> Script to highlight each uv on a subd surface; Make a subdiv surface, right click, select all the uvs:


this iterates through all the selected uvs of a subd surf


// Switch tool to prevent warning messages
global string $gSelect; // Sacred Select Tool
setToolTo $gSelect;

global proc test1(){

string $uv_list[] = `ls -sl`;

for ( $node in $uv_list) // process each selection
print ("\nthis is group: " + $node + "\n");
select("-r", $node);
string $sublist[] = `filterExpand -ex true -sm 73`;

for( $node in $sublist ){

select( "-r", $node);
print ("\n" + $node );

refresh( "-cv");
pause("-sec", 1);



// end of script

I was trying to "hack the pattern" but it didn't work.

ktpr - being tenacious.

CGTalk Moderation
01 January 2006, 05:03 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.