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:
User Information:
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
COFFEE ERROR!
(125) Error in 'include'
File: TheFileFromWhichIremovedTheFolder.cof
Line: ...
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:
.../Applications/MAXON/CINEMA4DR11/plugins
from above plugins/:
.../plugins/
myGenericFunctions.coh
PluginTypeAFolder
PluginTypeAsharedFunctions.coh
Plugin1AFolder
Plugin1menu.cof
Plugin1script.coh
Plugini1specificFunction.coh
Plugin2AFolder
Plugin2menu.cof
Plugin2script.coh
Plugini2specificFunction.coh
PluginTypeBFolder
PluginTypeBsharedFunctions.coh
Plugin1BFolder
Plugin1menu.cof
Plugin1script.coh
Plugini1specificFunction.coh
Plugin2BFolder
Plugin2menu.cof
Plugin2script.coh
Plugini2specificFunction.coh
Plugin3BFolder
Plugin3menu.cof
Plugin3script.coh
Plugini3specificFunction.coh
How do I structure and include to access PluginTypeAsharedFunctions.coh from Plugin1Ascript.coh
or
myGenericFunctions.coh from PluginAscript.coh
Thanks,
Graham