How to query uveditor title labels or uv cordinates?

How to query uveditor title labels or uv cordinates?

16497643852
Contributor Contributor
341 Views
1 Reply
Message 1 of 2

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
Accepted solutions (1)
342 Views
1 Reply
Reply (1)
Message 2 of 2

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