Hello-
I'm embarking on a project to develop and install a growing number of
Nuke plug-ins, and wondering if anyone has any strong opinions about how
best to organize plug-in files, icons, menu hooks, etc. The issue
applies both to a "source" development tree and the final installed
location(s) on NUKE_PATH, which may be different. (For example, the
source tree could branch off into a separate section for menu icons,
while the installation directory could be flat and simply mix icons and
.so files all together in a common directory.)
One motivating principle is that I think it would be convenient to
structure each plugin as a self-contained "package". All the relevant
files for a particular plug-in would be located under a common node (a
directory with the name of the node). This would apply to both source
and install trees. The corollary, however, is that each plug-in would
have its own menu.py file in a subdirectory, and the construction of
nuke.pluginPath() could result in the concatenation of many
subdirectories. Is there any significant performance disadvantage
here? From an organizational standpoint, having a separate menu.py file
for each plug-in makes it easier to merge and maintain new development,
eliminating the need to constantly edit a monolithic menu.py file. But
I recall that Shake had some serious start-up penalties when opening and
parsing a lot of small files, and would like to avoid those kinds of
potential issues with Nuke.
One potential scenario, for example, might be to keep the source menu.py
files separate, but then automatically concatenate them all together
into one big menu.py file during a "make install" step, or something
like that.
Any advice, file/directory naming examples, or cautionary tales would be
most welcome, thanks!
cheers,
Shawn Neely
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev