-
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
Possibility to select a menu preset #4841
Conversation
9ac737b
to
5f6a40d
Compare
settings.py
Outdated
from sverchok.ui.presets import get_sverchok_directory | ||
|
||
"""Don't import other Sverchok modules here""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are going to initialize half of Sverchok architecture via the settings module again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay...
get_sverchok_directory is quite simple function, it should be somewhere in core I think...
…o menu_yaml_settings
Addressed problem description
For now, it is not clear (yet), what should be The Right structure of Sverchok's Add Node menu. The ongoing discussion is in #4831.
Solution description
index.yaml
in the root of sverchok directory stays in place. It is still the default menu, but it is no longer the menu which is actually loaded at sverchok startup!index.yaml
menu under user's datafiles directory - something like~/.config/blender/3.4/datafiles/sverchok/index.yaml
.index.yaml
there, before loading it.menus/
directory.full_*.yaml
, there will be a CI test which checks that they have all the same nodes asindex.yaml
has.partial_*.yaml
. At the moment, there are no such presets in Sverchok distribution, but they may appear in future.menus/
subdirectory - something like~/.config/blender/3.4/datafiles/sverchok/menus/MY_MENU.yaml
.index.yaml
under user's datafiles directory. So at next startup, we will use that preset.index.yaml
under his datafiles directory, without having to touch the one which is in sverchok directory.Preflight checklist
Put an x letter in each brackets when you're done this item: