Sending an error from callback script

   2659   3   0
User Avatar
Member
24 posts
Joined: 10月 2007
Offline
Hi,

I was wondering how I can send an error to the node from a callback script. For instance, when a user changes a value in a field and a callback script is called and the value is invalid. I would like let the user know in this case by issuing some type of error.

Thanks
User Avatar
Member
7727 posts
Joined: 7月 2005
Online
I'm not sure that it's possible. Maybe you can use the “message” hscript command or hou.ui.displayMessage() python function?
User Avatar
Member
12480 posts
Joined: 7月 2005
Offline
Hey Hai,

It's been a long time request, to be able to add errors (red-flag) and warnings (yellow-flag) to nodes; unfortunately there lies the problem of having to have some way of clearing these flags too. So, Edward's method is going to have remain the only way for now, I think :?
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
24 posts
Joined: 10月 2007
Offline
Thanks guys. I'll make due with hou.ui.displayMessage.

- Hai
  • Quick Links