REALGetPluginData

Greetings all,

I’m trying to access the super class data properties of my plugin class. From what I gather I have to use REALGetPluginData, but I’m having trouble working out how to achieve this.

Can anyone please post a quick example in C++?

Cheers
Grant

We always use ClassData macro:

ClassData (CURLClass, instance, CURLClassData, me);

for super class, just use the Class for super and the structure for super.

Use this one here if the super is not in same plugin:

void * REALGetPluginData( REALobject obj, REALclassRef classRef )

Then you get the ClassRef for the Super class you want with REALGetClassRef I think it was then you pass that to REALGetPluginData along with the instance

Thanks Christian. I’m sure I’ve tried this previously and it didn’t work.

Thanks for your reply as well Björn.

Cheers
Grant