Selecting a Region via Script

Become a member of the CGSociety

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

Thread Tools Display Modes
  01 January 2013
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:

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


comps = getComponentAtLocation('pSphereShape1', position=[0.012, 0.75], extend=0.01)
print comps
# ['pSphereShape1.f[34:37]']
  01 January 2013
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
Society of Digital Artists

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

All times are GMT. The time now is 02:40 PM.

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