THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/02/2009 at 03:30, xxxxxxxx wrote:
Correct me if I am wrong but I assume the concept of the integration of Python plugins is the same like in Coffee.
When I want to execute a Python plugin and I call the register_tagdata(...) function in Python, I parse the syntax and if register_tagdata(...) is reached in the code, I catch the given arguments and redirect them to a C++ function. In this case a function in "Py4D". So Py4D calls the Register*() functions and CINEMA 4D doesn't know anything about the python plugins.
Because Py4D calls the Register*() methods the description files will be searched in the res folder of Py4D.
But here is the difference to Coffee. Coffee plugins can contain their own directory with res files.
plugins/my_coffee_plugin/res/
And because the Coffee plugin does not really ( I guess something else in CINEMA 4D does it) call the original Register*() functions there has to be a possibility to register a new directory for res files like:
ResFolder desc; //* just an example *//
desc.SetAnotherResFolder("/.../res")
RegisterDescription(123, desc);
RegisterTagData(.... , 123, );
I hope thats more informative.
Thanks. Bye :)