View Full Version : select faces by mel
f117f117f117677 03-07-2006, 07:06 AM Hey guys -
I was wondering if there was a way to select all faces. I would like to write a mel that select
all faces in Polygon modeling.
Thanks.
韬:)
|
|
A_New_Hope
03-07-2006, 11:52 AM
hi
not really sure what you want to do, select all face of a object or all face in the scene?
but you can start by checking out the polyListComponentConversion command
Robert Bateman
03-07-2006, 02:52 PM
select -r ($object+".f
");
or
select -cl;
$objs = `ls -type mesh`;
for($m in $objs)
select -add ($m+".f
");
f117f117f117677
03-13-2006, 07:42 AM
select -r ($object+".f
");
or
select -cl;
$objs = `ls -type mesh`;
for($m in $objs)
select -add ($m+".f
");
thanks bateman
i am just confused . $object and $m are undeclared variables.
why can they work.
A_New_Hope
03-14-2006, 08:48 AM
you have to declared the variables:
string $object;
string $objs[]
// name of the object with to select all face on
string $object = "pCube1";
select -r ($object+".f
");
select -cl;
// list off all polygon object in the scene.
string $objs[] = `ls -type mesh`;
// goes through all objects in the list
for($m in $objs)
select -add ($m+".f
");
Stucky
03-14-2006, 04:17 PM
Or you can just select the object(s) and run the command
ConvertSelectionToFaces;
-S
f117f117f117677
03-17-2006, 12:47 AM
you have to declared the variables:
string $object;
string $objs[]
// name of the object with to select all face on
string $object = "pCube1";
select -r ($object+".f
");
select -cl;
// list off all polygon object in the scene.
string $objs[] = `ls -type mesh`;
// goes through all objects in the list
for($m in $objs)
select -add ($m+".f
");
thanks.
does $m = mesh. if not what does it mean?
f117f117f117677
03-17-2006, 12:48 AM
Or you can just select the object(s) and run the command
ConvertSelectionToFaces;
-S
thanks. your idea is beautiful.
CGTalk Moderation
03-17-2006, 12:48 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-2012, Jelsoft Enterprises Ltd.