Jump to content

‘OPgetDirector’ was not declared in this scope


Recommended Posts

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 by danilo2
Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...