Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to query uveditor title labels or uv cordinates?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
16497643852
221 Views, 1 Reply

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

How to query uveditor title labels or uv cordinates?

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,

Labels (2)
1 REPLY 1
Message 2 of 2
16497643852
in reply to: 16497643852

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

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report