bernhard-42 / vscode-ocp-cad-viewer

A viewer for OCP based Code-CAD (CadQuery, build123d) integrated into VS Code
Apache License 2.0
80 stars 9 forks source link

Expose parameter to allow setting explode=True #6

Closed JonnyHaystack closed 1 year ago

JonnyHaystack commented 1 year ago

Should be able to set explode=True in set_defaults() or show() so you don't have to keep enabling the explode checkbox after each render

bernhard-42 commented 1 year ago

@JonnyHaystack There is too much interaction with the animation part to add it to set_defaults. It will only be available as a parameter to show, but not as parameter to show_object (doesn't make sense to explode one object). Would that work?

bernhard-42 commented 1 year ago

Ha, found a way to control the dependency between explode and animate. The explode setting will be available in VS Code Workspace config, with set_defaults and with show. Just not with show_object

bernhard-42 commented 1 year ago

Fixed in 1.0.0