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

Live reloading / remote procedure call API #8186

Open
1 task done
lynaghk opened this issue Jan 25, 2025 · 1 comment
Open
1 task done

Live reloading / remote procedure call API #8186

lynaghk opened this issue Jan 25, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@lynaghk
Copy link

lynaghk commented Jan 25, 2025

Is there an existing issue for this feature request?

  • I have searched the existing issues

Is your feature request related to a problem?

I'd like to programmatically control a running GUI instance of OrcaSlicer to do things like reload parts from STEP files, slice, and read various outputs (any warnings, generated gcode, filament length used, etc.).

My initial use case is "livereloading": Use Orca to visualize parts generated by "code CAD" tools like Bulid123d or Manifold so that when I press a button in my code editor the part file is generated and Orca shows the change automatically.

More broadly, having a defined API would allow for programmatic feedback loops for stuff like generative geometry / topology optimization.

Which printers will be beneficial to this feature?

All

Describe the solution you'd like

I've used Autodesk Inventor's API via Windows COM from Python scripts to script that CAD tool (details):

inventor_scripting.mp4

However given Orca's cross platform nature I expect it'd probably make more sense to do some kind of JSON RPC over unix domain sockets or a local webserver (potentially adding a hook to the CLI for convenience).

I understand there are a gazillion design decisions here and lots of questions about the desired API surface, backwards compatibility, etc.

I'll have a go at implementing something for my own immediate needs now, but I wanted to raise the question in case those more familiar with the project would like me to explore a specific direction.

Thanks, and have a great day!

Describe alternatives you've considered

No response

Additional context

No response

@lynaghk lynaghk added the enhancement New feature or request label Jan 25, 2025
@seafella
Copy link

If you dig in to some customization that you're willing to share please update the thread with your progress! I am in the process of making the switch to OrcaSlicer and I was surprised that there is no api

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