On 17/10/2015 at 07:14, xxxxxxxx wrote:
How can I detect which plugins are used in a scene?
I know how to get a list with all plugins (c4d.plugins.FilterPluginList
(type, sortbyname)
but that is a huge list and the non cinema 4d plugins are hard to detect.
Using type is not an option, because there is no "non cinema 4d type":
PLUGINTYPE_ANY | Any. |
---|---|
PLUGINTYPE_SHADER | 2D Shader. |
PLUGINTYPE_MATERIAL | 3D Shader. |
PLUGINTYPE_COMMAND | Command (menu) plugin. |
PLUGINTYPE_OBJECT | Object plugin. |
PLUGINTYPE_TAG | Tag plugin. |
PLUGINTYPE_BITMAPFILTER | Bitmap filter. |
PLUGINTYPE_VIDEOPOST | Videopost effect. |
PLUGINTYPE_TOOL | Tool Plugin. |
PLUGINTYPE_SCENEHOOK | Scene Hook. |
PLUGINTYPE_NODE | Node Plugin. |
PLUGINTYPE_LIBRARY | Library. |
PLUGINTYPE_BITMAPLOADER | Bitmap loader. |
PLUGINTYPE_BITMAPSAVER | Bitmap saver. |
PLUGINTYPE_SCENELOADER | Scene loader. |
PLUGINTYPE_SCENESAVER | Scene saver. |
PLUGINTYPE_COREMESSAGE | Core message. |
PLUGINTYPE_CUSTOMGUI | Custom GUI. |
PLUGINTYPE_CUSTOMDATATYPE | Custom datatype. |
PLUGINTYPE_RESOURCEDATATYPE | Resource datatype. |
PLUGINTYPE_MANAGERINFORMATION | Manager information plugin. |
PLUGINTYPE_CTRACK | Track plugin. |
PLUGINTYPE_FALLOFF | Falloff plugin. |
PLUGINTYPE_PREFS | Preference hook. |
_<_t_>_
Is there perhaps a plugin id range I can check.
For example, plugin id's > 1000010 are non cinema 4d plugins?
-Pim