Commit 4de6fa7
Add Instance.set_snapshot_size to rips Python client
Wraps the new setSnapshotSize gRPC command so callers can do
ri.set_snapshot_size(1600, 1000)
for plot in ri.project.plots():
plot.export_snapshot(export_folder=...)
and get 1600x1000 PNGs back. Mirrors the existing
Instance.set_plot_window_size wrapper shape. The headless_plot_export
example is updated to demonstrate the call between plot creation and
the export_snapshot loop.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 40a70f1 commit 4de6fa7
2 files changed
Lines changed: 44 additions & 0 deletions
File tree
- GrpcInterface/Python/rips
- PythonExamples/export_and_plotting
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
564 | 602 | | |
565 | 603 | | |
566 | 604 | | |
| |||
0 commit comments