I figure addWarning and addError are protect methods of OP_Node. They can only be called during cookMySOP(), am I right? is there a way I can add warning to other OPs instead itself? something like:
You can only call those during a cooking code path. Or you can try using appendError() when outside a cooking code path. I'm not sure those will show up though unless you also made a call to opChanged(OP_UI_CHANGED).
Thank you, Edward. So what I am trying to do is, I have a procedural shader hdk, when the procedural code hits an error, I wanna bring the error message to a ROP or a SOP. Is there a way to do so?