THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/01/2010 at 14:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.027
Platform:
Language(s) : C++ ;
---------
Hi,
When my plugin executes, it tries to load the resource files from the path of the CINEMA_4D executable instead of from the plugin path.
I tried using resource.Init("path_to_my_plugin_directory"), but that does not work.
I also tried resource.ReloadResource, even though the header file warned against it. But it still does not work.
In both cases, the methods were called in response to the C4DPL_INIT_SYS plugin message.
What am I overlooking? How can I force Cinema4D to look for my resource files in the plugin path instead of in the CINEMA_4D path?
Note that when we launch cinema4D, we first set the C4D_PLUGINS_DIR environment variable. Could that be causing a problem with loading resources?
Thanks!