Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to query uveditor title labels or uv cordinates?

16497643852
Contributor

How to query uveditor title labels or uv cordinates?

16497643852
Contributor
Contributor

Hello All,

 

I would like to query the UV editor title labels or uv coordiantes on the basis of the mesh shape selection

for eg: 

If one of the UV is not in the U1V1 box, I would like to get the return of the uv coordinates/labels as U1V-1 and the uv selection list that is in U1V-1 box. Please check the below image.

 

16497643852_0-1678358841113.png

 

I have tried,

few commands - cmds.polyEditUV, cmds.polyInfo, cmds.polyEvaluate

polyEditUV was the most closest i could get

(selecting uv part,

 right click selecting `uv`,

shape.map[0]..n(script editor),

It returns all the values U1V-1)

The problem is its slow and returns alot of values, it is very verbose.

 

If there is any easier approach or efficient approach, please do let me know.

Any suggestions would be really helpful,

0 Likes
Reply
Accepted solutions (1)
256 Views
1 Reply
Reply (1)

16497643852
Contributor
Contributor
Accepted solution

I got a reference to find where exactly the uv is - please refer the below link

https://forums.cgsociety.org/t/uv-selection-by-tile-range/1584447/2

basically

Selecting the geo

cmds.polyEvaluate(b2=True)

you'll get a tuple eg: ((min_u, max_u)(min_v, max_v))

the values should be minimum 0.0 and maximum 1.0

You can use if and else to resolve it

0 Likes