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
