Skip to content
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

No separator line between my nodes and sverchok-extra #34

Open
wassimj opened this issue Feb 11, 2021 · 4 comments
Open

No separator line between my nodes and sverchok-extra #34

wassimj opened this issue Feb 11, 2021 · 4 comments

Comments

@wassimj
Copy link

wassimj commented Feb 11, 2021

I have been modelling my Topologic nodes on sverchok extra and I just noticed that in the Shift-A menu, there is no separation between the sverchok-extra nodes and the Topologic nodes. I am suspecting somehow they are being read into the same category? If so, where should I look to make sure there is a separator line between the two packages? Thank you
Screenshot from 2021-02-11 11-20-27

@vicdoval
Copy link
Contributor

@wassimj Don't you think it would be cleaner to have all the nodes inside a Topologic menu with submenus?

@wassimj
Copy link
Author

wassimj commented Feb 11, 2021

@vicdoval Yes 100% and I had it like that, except I don’t know how to create sub-sub-menus. I would like to create a structure like:

Topologic
——Vertex
————ByCoordinates
————Coordinates
——Edge
————ByStartVertexEndVertex
————StartVertex
————EndVertex

@vicdoval
Copy link
Contributor

The basic idea is creating your own Topologic menu with the categories you desire and then you plug it to the regular menu.
In Blender every menu, or sub-menu has to be created and registered independently.
In Sverchok this is automated so you just need to edit the index.md file and the rest is made under the hood.
In sv-extra there is not a index.md file so it is a little different which shows there is many ways to code this task.

So you can try to make it your own way or maybe if you have a public repository with your code maybe some else can help you (maybe me but it has to be Windows ready at the moment).

@satabol
Copy link
Collaborator

satabol commented Mar 9, 2024

Hi @wassimj

Sverchok-Extra is now updated and one can create sub-sub menu now. See https://github.com/portnov/sverchok-extra/blob/master/nodes_index.py for example:
image

If your addon is another project then you need update functions to build your menu in the file https://github.com/portnov/sverchok-extra/blob/master/dependencies.py and see any class in the Extra to see the difference with previous node creation pipeline (not many changes):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants