I am seeing extreme slow downs when getting/setting weights using point indexes in Maya 2023. Especially on getting, 100x slow downs. Using iomode improves setting weight speeds to close to 2022 speeds but does not help getting. Using open maya gets around this problem in 2023 but open maya and setAttr, used in this way, was the same speed in 2022 and below.
In this example, getting the weights takes in the hundredths of second in 2022 and 3-5 seconds in 2023. Any one have a clue? Affects all updates of 2023. import maya.cmds as mc import time mc.dgcontrol(iomode=True) # Build a 30K point plane and cluster geo = mc.polyPlane(sx=100, sy=300)[0] cluster = mc.cluster(geo)[0] # Weights pnt_count = mc.polyEvaluate(geo, v=1) weight_attr = f"{cluster}.wl[0].w[0:{pnt_count-1}]" # Get weights start_time = time.time() weight_array = mc.getAttr(weight_attr) print('GET Weights Time', time.time() - start_time) # Set weights start_time = time.time() mc.setAttr(weight_attr, *weight_array) print('SET Weights Time', time.time() - start_time) mc.dgcontrol(iomode=False) -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6f1508a8-a686-46e8-914c-412baf231d32n%40googlegroups.com.