Announcement

Collapse
No announcement yet.

How to get plugin name or ID from PluginBase pointer ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get plugin name or ID from PluginBase pointer ?

    hi,

    I want to take of use the "getPluginID" and "getName" function provided by Plugin class but most of the time i could only get the PluginBase* from interface's "getPlugin" function. So the question is how to retrieve the related Plugin object from PluginBase* ? Thanks.

  • #2
    It should be safe to do this:
    Plugin* plugin = static_cast<Plugin*>(pluginBase);
    V-Ray/PhoenixFD for Maya developer

    Comment

    Working...
    X