On 01/07/2014 at 11:46, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hello, I'm implementing a plugin in C++ and trying to interact with the VRay plugin. I found that I can't access to the custom parameters of the plugin.
This is the test code that I am using:
BaseList2D *mat =nullptr;
//Get the vray plugin for Vray Advanced Material
BasePlugin *plug = FindPlugin(1020295, PLUGINTYPE_MATERIAL);
if (plug && plug->Message(MSG_RETRIEVEPRIVATEDATA, &mat))
{
if ( mat != nullptr)
{
BaseContainer *bc = mat->GetDataInstance();
if (bc != nullptr)
{
GePrint("-----OPTIONS------");
Int32 i = 0;
Int32 id = 0;
while (true)
{
id = bc->GetIndexId(i);
i++;
if (id == NOTOK) break;
else
{
Int32 dt = bc->GetData(id).GetType();
GePrint("ID: " + String::IntToString(id));
GePrint(" ->Type: " + String::IntToString(dt));
}
}
}
}
}
Any ideas? Tips? Something I should try?
Any comments are welcome.
Thank you.