PDA

View Full Version : querying the subD level zero verticies


rhythmone
02-21-2004, 01:45 AM
Does anyone know how to get a list of verticies that represent all the level zeros from a subdivision surface?

ktpr
02-21-2004, 05:01 AM
I haven't tested this, but this should work:

$lv0faces = querySubdiv -a 4 -level 0 subdivShape1;
select - r $lv0faces; // if not already selected?
PolySelectConvert 3; // should convert from face to vertex

$lv0verts = `ls -sl`; // grab the vertices

now i dont know if you have to thave gametools to get polyselectconvert or if it ships with maya.

ktpr
02-21-2004, 08:54 PM
PolySelect assumes you have BonusPack installed.

Use:

subdListComponentConversion [flags] [objects...]

instead. So You select the faces at a certain level and use subdListComponentConversion to convert to vertices.

rhythmone
02-21-2004, 09:35 PM
That is so totally great :bounce: THANKS :thumbsup:

CGTalk Moderation
01-17-2006, 12:00 PM
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.