THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/05/2009 at 15:14, xxxxxxxx wrote:
Cinema 4D Version: 11
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;
I posted this at the end of another Include thread, but it may not have belonged there and I received no reply, so here goes with a more specific topic:
I'd like to "include" a common function library(ies) into a variety of plugins I'm working on- each in its own directory, but I can't specify a path (or can't figure out how to from the SDK.)
Mikael mentions in the related thread that "C4D searches all directories in the working directory for includes", but as soon as I move my common library out of any given folder either into the Plugins or into another folder withing Plugins, that plugin fails to load with
(125) Error in 'include'
Creating aliases for the include file doesn't work (makes sense), so do I really need to keep a copy of this common library (still a work in progress) and replace every copy in each plugin's folder everytime I do a minor update during development? Please let me know if there is some way to specify a path for the include or if I'm doing something else wrong. I don't suppose I could just read the file as a concatinated string and use that as my own "include()" function...
Here is the directory structure I want:
from above plugins/:
How do I structure and include to access PluginTypeAsharedFunctions.coh from Plugin1Ascript.coh
myGenericFunctions.coh from PluginAscript.coh