cgru icon indicating copy to clipboard operation
cgru copied to clipboard

Error! Not have method reverse for list

Open alexcubor opened this issue 2 years ago • 4 comments

https://github.com/CGRU/cgru/blob/b75c1cb50dacbb9e0fbd20fb18c9b9ff0b2ce9f4/plugins/maya/afanasy/maya_ui_proc.py#L358

I suggest changing the line to:

labels = list(renderLayers.values())
list(reversed(labels))

alexcubor avatar Feb 09 '23 12:02 alexcubor

Would you like to create a pull request for this.

eoyilmaz avatar Feb 10 '23 11:02 eoyilmaz

Would you like to create a pull request for this.

Yes. This is my fix

alexcubor avatar Feb 14 '23 12:02 alexcubor

Python list has method reverse() Maybe the error is somewhere else?

timurhai avatar Feb 14 '23 12:02 timurhai

Maybe labes is not a list just after this: labels = renderLayers.values() Maybe there should be: labels = list(renderLayers.values())

timurhai avatar Feb 14 '23 12:02 timurhai