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 <[email protected]> 
Date: 17/08/2013  10:23  (GMT+01:00) 
To: [email protected] 
Subject: Re: [Bf-python] (no subject) 
 
On 08/17/2013 07:18 AM, [email protected] 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

_______________________________________________
Bf-python mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-python

Reply via email to