-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon Preferences #187
Comments
I have no experience using Addon preferences, so i'm scratching the head in complete ignorance |
It is slowly clearing for me, for example print update timings should bet applied via the post load handler. Nodes that have preferences should get the defaults from |
wonder how that will work with the update mechanism. If we store preferences locally in the addon directory, we'd want to add such file to the gitignore so we don't accidentally upload a personal preferences file. |
sublime text editor does something neat, it generates a edit: here i use |
Well I don't develop directly there so no problem for me, but good point about it there. |
ok |
1 yes as discussed earlier |
3 - is how color is determined. i see this is problem, what color asssigned to node with it's timing. correctly to pick particular color |
here should be placed upgrade function. today i will try to do this |
Okay got __package__ = bpy.types.SverchokPreferences.bl_idname
addon = bpy.context.user_preferences.addons.get(__package__) |
Added setting for frame change handler, pre, post and none. |
for this message: |
prefs are great :) |
I added the preferences in
__init__.py
. Right now only print timings options is there.This is an test picture not showing the version on github, layout of course needs some fixing. changing these values have no effect right now.
Of course there should be settings for more things here.
I don't want to put in
__init__.py
because it will most likely grow a bit. However if put somewhere else_package__
doesn't seem to work to define the addon name, which has to matchbl_idname
. This should be solved, any ideas?http://www.blender.org/documentation/blender_python_api_2_70a_release/bpy.types.AddonPreferences.html
The preferences are available via
but I think we should make some simple way of getting preferences set from
def init(self, context):
Any suggestions?One suggestion:
Where the
pref_dict
is generated in some clever way on startup, I imagine withbl_idname
as key.Buttons that should be here,
Apply preferences
andReset to default.
Furthermore preferences aren't saved if the plugin is disabled so we should save it to a local file somewhere...
Also theme support for FAIL_COLOR, and different node types.
The text was updated successfully, but these errors were encountered: