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.
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,
Solved! Go to Solution.
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.
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,
Solved! Go to Solution.
Solved by 16497643852. Go to 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
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.