Hello everyone! This is my first post here
I’ll try to explain what I’, trying to do and where I’m stuck. The goal is to write custom log tool for Maya. I mean user have options to enable/disable some sort of log information that is generate by
So I wrote Maya API plugin. Nothing fancy it just have command which enables
om.MCommandMessage.addCommandOutputFilterCallback() and writes log info into text file. This part is working just fine. The problem is in read that file and update
QTextEdit() widget line by line. Is it possible do this while Maya is running operations? I mean while it runs some code. The log generated by plugin is working fine while Maya runs other executed code e.g in Script Editor. My intent of using self.repaint() is ended with Maya crash.
So, I know that in ideal world one can run some code in separate thread. In my case it would be read text file and update UI.