[Bf-python] Ideal way to store material data for matlib add-on?

Daniel Monteiro Basso danielmbasso at gmail.com
Fri May 10 20:25:18 CEST 2013


On Fri, May 10, 2013 at 6:41 PM, Peter D. Cassetta
<peter at fingertipsoft.com>wrote:

> If it is not workable, or just too difficult, an alternative might be
> using a library.blend which stores all the materials. The only difficult
> part would be adding new materials to the library from time to time.
> Currently it's as simple as editing an XML file and uploading the
> XML-based material file, but you can imagine that appending would get a
> bit tedious after a while.
>

You can script it, e.g.:
bpy.ops.wm.link_append(
   directory="/home/dmbasso/projects/lilith/template.blend/Material/",
   filepath="template.blend/Material/Hair",
   filename="Hair",
   link=False, instance_groups=False,
   relative_path=False)

Btw, keep up the good work, the concept of your addon is really useful.

Cheers,

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20130510/9fb13bfe/attachment.html>


More information about the Bf-python mailing list