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

Feature request: Hidden and wireframe parameters in show_object and show_all #114

Open
marcos-diaz opened this issue Oct 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@marcos-diaz
Copy link

When using show_object() or show_all() it would be nice to be able to control what is the default hidden (eye icon) and wireframe mode of the rendered objects.

If the user changes the visibility on the UI via the eye icon or the wireframe icon, these should be kept or not based on something like set_defaults(reset_camera=Camera.KEEP_VISIBILITY) or similar.

Proposed API:

show_object(thing, visibility=False, wiremode=True)

show_all(hidden=*objects, wiremode=*objects)
@bernhard-42 bernhard-42 added the enhancement New feature or request label Oct 26, 2024
@bernhard-42
Copy link
Owner

You might want to look at set_viewer_config (exposed from ocp_vscode):

set_viewer_config(states={"/Group/p": [1,0], "/Group/p2":[0,1]})

You address each object by the full path from top, here /Group/ joined with p or p2
image

And

status()["states"]
# {'/Group/p': [1, 0], '/Group/p2': [0, 1], '/Group/c': [1, 1]}

provides the current settings

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

No branches or pull requests

2 participants