CGTalk > Software Specific Forums > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 01-28-2013, 11:55 PM   #1
rgkovach123
Know-it-All
robert
austin, USA
 
Join Date: Nov 2006
Posts: 364
Selecting a Region via Script

Let's say I have a location in UV Space. This location is contained within a triangle - no component lives at this location. How can I, through python preferably, get the triangle at that location?
To go one step further, how could take the location, add +/- 5% of UV space and pass that as a bounding region to grab any other triangles that may be near?

for example:

Code:
comps = getComponentAtLocation('pSphereShape1', position=[0.012, 0.75]) print comps # ['pSphereShape1.f[36]']


or

Code:
comps = getComponentAtLocation('pSphereShape1', position=[0.012, 0.75], extend=0.01) print comps # ['pSphereShape1.f[34:37]']
 
Old 01-28-2013, 11:55 PM   #2
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:06 PM.


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