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

Hook access to geometry selection #127

Open
c42f opened this issue Sep 6, 2016 · 2 comments
Open

Hook access to geometry selection #127

c42f opened this issue Sep 6, 2016 · 2 comments
Labels

Comments

@c42f
Copy link
Owner

c42f commented Sep 6, 2016

When a vertex is clicked on, it would be useful to be able to get the selection as a hookable event, and to get the geometry label and vertex which was selected.

@c42f
Copy link
Owner Author

c42f commented Sep 6, 2016

@Ross-Batten

@c42f
Copy link
Owner Author

c42f commented Sep 11, 2016

Possible design:

$ displaz -hook select:vertex selected_geometry_index
select:vertex "label1" 0
select:vertex "label2" 1
select:vertex "label7" 100
...

That is, the payload selected_geometry_index returns the geometry label and the selected (0-based) index in the original dataset (ie, the index of the dataset as loaded, not as internally reordered by displaz). Using the label in this scheme is a little annoying in that it'll have to be quoted, or the spaces escaped.

@c42f c42f added the api label Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant