Hi guys!
Im just curious if anyone has noticed (or knows a solution to) how when embedding an image with cmds.image() or cmds.iconTextButton() (or the MEL counterparts), this increases mayas memory usage of Maya?
Reloading the script doesnt seem to flush the memory automatically, but instead continually increases mayas memory usage on every reload. Is there’s a way to detect when a script is being reloaded to do this?
Basically im going through and displaying images within a folder with the use of iconTextButton(), these are only low-res, but the memory increases is fairly high (50-100MB on each reload). Having a look at more popular, public scripts and plugins, a lot seem to have the same issue - but usually with a smaller footprint due to being small icons, etc.
Hopefully this post makes sense - I would really appreciate any suggestions on fixing this!