How to display Huds up message in rv viewport that disappears automatically?

Hey,

Great, thanks for that info. Is there a specific reason why you’re looking to have the HUD in the lower right corner?

If you want, you can use commands.displayFeedback and that will show up a message that disappears and it’s very easy to implement:

from rv import extra_commands as rve
## Hold for 2 seconds
rve.displayFeedback("Shotgun will use same window to play mov", 2.0)

Unfortunately displayFeedback is limited to upper left corner. If you want to move your message to another portion of the application, you’ll need to use setupProjection call and do some math on size of the box/coordinates and size of text. You can take a look at shotgun_info_mode.mu under RV_INSTALL_PATH/PlugIns/Mu/ for some inspiration if you’d like.

If you’d like a warning message that needs to be clicked/dismissed you can use commands.alertPanel command. Though it sounds like that’s not quite what you’re going for.

Hope this helps!

Thanks,
Alexa

2 Likes