If all the uv's are inside a certain UDIM (so not overlapping to multiple UDIMs) you could just take first UV of each object, and check where it is in UV space, and convert that to UDIM space.
J On Friday, May 1, 2015 at 8:37:06 AM UTC+2, Chad_Fox wrote: > > Hey everyone, > > I've been brute force checking UV coords to determine what UDIMs any > selected object(s) are using, but my simple python query for all UVs and > checking each of their coords is painfully slow and in some cases unusable > in scenes my team will be working with. > > Do any of you have any snippets of python / python api code that can > efficiently return a large list of occupied UDIMs from selected object? > > Appreciate any help you may be able to offer, thanks! > > Chad > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/aa9cd5e7-5d08-474d-9861-323715dce70b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
