danilo2 Posted March 24, 2010 Share Posted March 24, 2010 (edited) Hi! I'm trying to make own houdini plugin. I've compiled successfuly the "STAR_SOP" example with my own makefile (attached). The problem is, that when I add a line (to test out): OPgetDirector()->clearPickedItems(); I've got error: ‘OPgetDirector’ was not declared in this scope Ok - so OPgetDirector was not declared in this scope, but how can i find out in which scope it was declared? I cannot simply make it working thnak you Edited March 24, 2010 by danilo2 Quote Link to comment Share on other sites More sharing options...
danilo2 Posted March 24, 2010 Author Share Posted March 24, 2010 Sorry, I couldn't open "full editor" to edit previous post - this is the attachment Qtools.rar Quote Link to comment Share on other sites More sharing options...
edward Posted March 25, 2010 Share Posted March 25, 2010 http://www.sidefx.com/docs/hdk10.0/_o_p___director_8h.html#5ee0605f2691ded26e79ff43463cec3c Quote Link to comment Share on other sites More sharing options...
erik Posted April 7, 2010 Share Posted April 7, 2010 If you didn't find out the correct way by Edward's answer, the reason why you are getting this error is because the compiler does not recognize the OPgetDirector call. The explanation for this is that you have not declared this function yourself and you have not included any file that does either. To fix the problem, add the line: #include <OP/OP_Director.h> at the top of SOP_Qtools.C 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.