View Full Version : selecting all the faces?
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.
====
createSubdSphere;
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:
cheers
ktpr
|
|
larryvm
05-21-2003, 12:27 PM
use
ConvertSellectionToFaces
does anyone understand the .smf[0:2][67108864] notation? Is this a weird matrix or something?
ktpr
mark_wilkins
05-23-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
thanks.
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.
cheers
ktpr
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-15-2006, 04: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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.