post_notification#

omni.kit.context_menu.scripts.post_notification(message: str, info: bool = False, duration: int = 3)#

Post a notification via omni.kit.notification_manager.

Parameters:
  • message (str) – The notification text.

  • info (bool) – notification is NotificationStatus.INFO when True otherwise NotificationStatus.WARNING

  • duration (int) – The duration (in seconds) after which the notification will be hidden. This duration only works if hide_after_timeout is True.