[Bf-python] (no subject)

Michel.Anders@inter.nl.net manders at inter.nl.net
Sat Aug 17 18:25:06 CEST 2013


I am afraid that doesn't work (at least not for me), If I do what you suggested the presets dropdown shows *missing paths* ... it appears that in compsing the presets drop down Blender is just looking in the presets directory that is at the same level as the addons directory.

does anyone have an example of an addon that actually crsates a list of presets at install time?

-- Michel.

-------- Original message --------
From: Domino Marama <domino at dominodesigns.info> 
Date: 17/08/2013  10:23  (GMT+01:00) 
To: bf-python at blender.org 
Subject: Re: [Bf-python] (no subject) 
 
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/aae74e96/attachment.html>


More information about the Bf-python mailing list