Hello, I'm currently updating some code from a plug-in for Maya (the animation software) from Python 2 to Python 3 and noticed I was having some issues with keys... specifically I am getting an error message saying " dict_keys' object has no attribute 'sort' "
I wound up tracing this to code on line 191-192 which states:
I wound up tracing this to code on line 191-192 which states:
shapes = CONTROL_SHAPES.keys() shapes.sort()I am struggling to figure out what is going on? I have looked on a few forums and the closest thin to an answer I have found so far was to retype 191 as:
shapes = list(CONTROL_SHAPES.keys())However, that has not yielded any results for me. Does anyone here have any idea as to what part of this code might need to be updated or how I might go about it?