[Bf-python] (no subject)

Domino Marama domino at dominodesigns.info
Sat Aug 17 10:23:06 CEST 2013


On 08/17/2013 07:18 AM, Michel.Anders at inter.nl.net wrote:
> What would be the best way to bundle presets with an addon? I cannot
> put them in the zipfile containing the python modules because the
> presets directory is located outside the addons directory (right?).
>
> Now I know I could probably add some presets via the API as part of
> the registration process but that is a bit clunky. It would be far
> less cumbersome to copy a set of presets to the zipfile because that
> way it would be possible to do maintenance on the presets without
> altering any code.
>
> Any ideas? (am I missing something about the addon registration process?) 
>
You can copy the presets to the zip file. They go in a presets directory
that is the same structure as where the presets are saved. So you end up
with something like this in your zip:

presets/operator/mesh.uv_shape_add/sphere.py
presets/operator/mesh.uv_shape_add/hemisphere.py
add_mesh_uv_shape.py

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20130817/30f29542/attachment.html>


More information about the Bf-python mailing list