9th April 2019 at 7:28 pm #17387
I’m working now on a quite simple script. It should wait until a specified time than force logs out all users in order to free up all available RAM memory for the rendering process. Moreover, I’d like to add an option for the artists that decided to work long hours to cancel this scenario. I see it like a popup message (like that that appear when you confirm changes in the template) that will notify the artist that its user will be logged out through the ten minutes. But if an artist clicks to the Cancel button it won’t be logged out. This is the whole idea.
I’ve managed to create the first part that logs out the user at a certain time. Then I thought that Muster’s API could contain functionality to create the popup message, but after a couple of hours of the research, I didn’t find anything. That why I wrote this question)))
So, I’d like to notify the user prior some minutes to the logout action. And give him an ability to cancel it. From your point of view, what is the best way to implement it?10th April 2019 at 8:52 am #17388
From where you’re logging out the users ? From a python template?
With the current API this sounds a little complex, but we can implement functions like onCustomMessage (that’s actually available from a node to Dispatcher) into the Dispatcher API too, to be able to send messages to connected Consoles as well as Renderclient. By implementing the ability to send messages from/back console to the Dispatcher, you can catch back a response from a modal dialog created with Pyside/QT. We have logged the improvement for 9.0.13 , so you need to wait some days until we release it and your life will be simpler in implementing your request.
Thanks and regards!24th April 2019 at 12:54 pm #17474
Custom messages have been implemented in 9.0.13, further information on the MTemplate class documentation at:
Also the global template(0) carries on all the function definitions to react to custom messages sent through the APIs
You must be logged in to reply to this topic.