GallenWolf Posted April 21, 2008 Share Posted April 21, 2008 Hi! How can I cause a SOP to error out? E.g. a file sop will have the red crosshatches when the input file is invalid. I was playing with the UT_ASSERT but I think those are meant for the debuggers? Thanks! Alvin PS: Is this forum a good place to post for uber n00b hdk questions? I did C++ a long, long way back, the templates in the hdk are giving me chills. So are the pointers... gah.... PS2: I got a test sop to load a bgeo, woot happiness! Quote Link to comment Share on other sites More sharing options...
edward Posted April 22, 2008 Share Posted April 22, 2008 addError(SOP_MESSAGE, "My error"); Quote Link to comment Share on other sites More sharing options...
sibarrick Posted April 22, 2008 Share Posted April 22, 2008 This is a great place for noob questions, its where I put all mine Quote Link to comment Share on other sites More sharing options...
GallenWolf Posted April 28, 2008 Author Share Posted April 28, 2008 Gah sorry for the late reply guys! Home system was down due to upgrades (woo 7200 rpm drive for my lappy! Ubuntu 7.10 rock with H9!) I'm still setting up some stuff; thanks so much for the tips Alvin Quote Link to comment Share on other sites More sharing options...
nestumkiller Posted June 16, 2008 Share Posted June 16, 2008 Do you guys know how to do it for OBJ's? There's not generic code for it Thanks Quote Link to comment Share on other sites More sharing options...
nestumkiller Posted June 16, 2008 Share Posted June 16, 2008 Do you guys know how to do it for OBJ's?There's not generic code for it Thanks Already got the answer from Edward (don't know if the same as in this forum ) in another forum. #include <OP/OP_Error.h> opError(OP_ERR_ANYTHING, "my message"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.