select vertices by attribute values...

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  04 April 2003
Question select vertices by attribute values...

There is a way to select a list of objects or components by an attribute value?
Example: i want to select a particular list of vertices in a poly object that has a the same x and y values, defined by a string.
Hope this is possible and thanks in advance for possibly replies.

Bye
 
  04 April 2003
The best way is to list all of the object's vertices and then loop over them, testing as you go:

string $object = "nurbsSphere1";

string $vertices[] = `ls ($object + (".cv[*]"))`;

for ($currvert in $vertices) {
// test their attributes in here
}

Note that in your case you do NOT want your test to be simple equality, because two vertices may have insignificantly different numerical values yet be so close that you want to treat them as being at the same location. You should really test for their proximity to each other.

-- Mark
__________________
Mark R. Wilkins
author of MEL Scripting for Maya Animators
 
  04 April 2003
Thanks a lot Mark, i give it a try now...

 
  01 January 2006
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:45 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.