CLI --orient argument ISSUE #470

Open
opened 2026-04-05 16:21:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Help3D-Padova on 3/4/2026

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.3.2 RC and 2.3.1

Operating System (OS)

Windows

OS Version

11

Additional system information

No response

Printer

No Printer

How to reproduce

I'm successufully using CLI cmd with Bambu Studio. The same CMD sent to Orca Slicer is not working. The only way to make it works is by using ORIENT=1

return [
executable,
"--debug",
"5",
"--slice",
"0",
"--no-check",
"--outputdir",
str(run_dir),
"--arrange",
"1",
"--orient",
"1",
"--ensure-on-bed",
"--load-settings",
f"{machine_profile_path};{process_profile_path}",
"--load-filaments",
str(filament_profile_path),
"--rotate",
f"{rotation_z_deg}",
"--rotate-x",
f"{rotation_x_deg}",
"--rotate-y",
f"{rotation_y_deg}",
str(cli_model_input),
]

Actual results

The ONLY way to produce a valid Gcode is enabling ORIENT=1. If this argument is 0 (I don't want auto orient...) or not presente in the CMD gives NO gcode results.

[2026-03-04 23:56:06.218227] [0x0000a1d8] [info] start 1 th arranging...
[2026-03-04 23:56:06.218227] [0x0000a1d8] [debug] arrange progress: initial order: magic-stick-magic-stick-v0-8da263f6.stl, p=0, bed_temp=90, height=240, area=1.13002e+14
[2026-03-04 23:56:06.223729] [0x0000a1d8] [debug] arrange progress: magic-stick-magic-stick-v0-8da263f6.stl bed_id=0,score=0.200000, score_all_plates=0.200000
[2026-03-04 23:56:06.223729] [0x0000a1d8] [debug] arrange magic-stick-magic-stick-v0-8da263f6.stl succeed!, plate id=0, pos=249.002,248.998, temp_type=0
[2026-03-04 23:56:06.224730] [0x0000a1d8] [info] finished 1 th arranging...
[2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0
[2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::postprocess_bed_index_for_selected: bed_idx 0, locked_plate -1, translation(x) 128.001, (y) 127.996
[2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::postprocess_bed_index_for_selected:found in plate_index 0, bed_idx 0
[2026-03-04 23:56:06.224730] [0x0000a1d8] [trace] after arrange: name=magic-stick-magic-stick-v0-8da263f6.stl,bed_id 0, trans {128.001,127.996}

[2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::postprocess_arrange_polygon: bed_idx 0, selected 1, translation(x) 128.001, (y) 127.996
[2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlateList::rebuild_plates_after_arrangement:before rebuild, plates count 1, recycle_plates 1
[2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0
[2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::reload_all_objects: m_model->objects.size() is 1
[2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlate::add_instance: plate_id 0, add instance obj_id 0, instance_id 0, move_position 0

STDERR:


If I try with ARRANGE=0 AND ORIENT=0

[2026-03-04 23:57:57.660899] [0x000082d0] [debug] Before process command, no need to orient, object id :5

[2026-03-04 23:57:57.660899] [0x000082d0] [info] before arrange, need_arrange=0, duplicate_count 0, filament_color_changed 0
[2026-03-04 23:57:57.660899] [0x000082d0] [info] ensure_on_bed: need to ensure each object on beds
[2026-03-04 23:57:57.660899] [0x000082d0] [info] Need to slice for plate 0, total plate count 1 partplates!

[2026-03-04 23:57:57.660899] [0x000082d0] [info] Plate 1: pre_check 1, start
[2026-03-04 23:57:57.660899] [0x000082d0] [debug] BuildVolume printable_area clasified as: Rectangle
[2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::Model::update_print_volume_state, print_volume {0, 0, 0} to {256, 256, 250}, got 0 printable istances
[2026-03-04 23:57:57.660899] [0x000082d0] [error] plate 1: Nothing to be sliced, Either the print is empty or no object is fully inside the print volume before apply.

Slic3r::CLI::run found error, exit
[2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0
[2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0
[2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0

RETRY STDERR:

Expected results

Producing a valid gcode

Project file & Debug log uploads

arrange0_orient0.log
arrange1_orient0.log

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

*Originally created by @Help3D-Padova on 3/4/2026* ### Is there an existing issue for this problem? - [x] I have searched the existing issues ### OrcaSlicer Version 2.3.2 RC and 2.3.1 ### Operating System (OS) Windows ### OS Version 11 ### Additional system information _No response_ ### Printer No Printer ### How to reproduce I'm successufully using CLI cmd with Bambu Studio. The same CMD sent to Orca Slicer is not working. The only way to make it works is by using ORIENT=1 return [ executable, "--debug", "5", "--slice", "0", "--no-check", "--outputdir", str(run_dir), "--arrange", "1", "--orient", "1", "--ensure-on-bed", "--load-settings", f"{machine_profile_path};{process_profile_path}", "--load-filaments", str(filament_profile_path), "--rotate", f"{rotation_z_deg}", "--rotate-x", f"{rotation_x_deg}", "--rotate-y", f"{rotation_y_deg}", str(cli_model_input), ] ### Actual results The ONLY way to produce a valid Gcode is enabling ORIENT=1. If this argument is 0 (I don't want auto orient...) or not presente in the CMD gives NO gcode results. [2026-03-04 23:56:06.218227] [0x0000a1d8] [info] start 1 th arranging... [2026-03-04 23:56:06.218227] [0x0000a1d8] [debug] arrange progress: initial order: magic-stick-magic-stick-v0-8da263f6.stl, p=0, bed_temp=90, height=240, area=1.13002e+14 [2026-03-04 23:56:06.223729] [0x0000a1d8] [debug] arrange progress: magic-stick-magic-stick-v0-8da263f6.stl bed_id=0,score=0.200000, score_all_plates=0.200000 [2026-03-04 23:56:06.223729] [0x0000a1d8] [debug] arrange magic-stick-magic-stick-v0-8da263f6.stl succeed!, plate id=0, pos=249.002,248.998, temp_type=0 [2026-03-04 23:56:06.224730] [0x0000a1d8] [info] finished 1 th arranging... [2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0 [2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0 [2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::postprocess_bed_index_for_selected: bed_idx 0, locked_plate -1, translation(x) 128.001, (y) 127.996 [2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::postprocess_bed_index_for_selected:found in plate_index 0, bed_idx 0 [2026-03-04 23:56:06.224730] [0x0000a1d8] [trace] after arrange: name=magic-stick-magic-stick-v0-8da263f6.stl,bed_id 0, trans {128.001,127.996} [2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::postprocess_arrange_polygon: bed_idx 0, selected 1, translation(x) 128.001, (y) 127.996 [2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlateList::rebuild_plates_after_arrangement:before rebuild, plates count 1, recycle_plates 1 [2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0 [2026-03-04 23:56:06.224730] [0x0000a1d8] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0 [2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlateList::reload_all_objects: m_model->objects.size() is 1 [2026-03-04 23:56:06.224730] [0x0000a1d8] [debug] Slic3r::GUI::PartPlate::add_instance: plate_id 0, add instance obj_id 0, instance_id 0, move_position 0 STDERR: --------------------- If I try with ARRANGE=0 AND ORIENT=0 [2026-03-04 23:57:57.660899] [0x000082d0] [debug] Before process command, no need to orient, object id :5 [2026-03-04 23:57:57.660899] [0x000082d0] [info] before arrange, need_arrange=0, duplicate_count 0, filament_color_changed 0 [2026-03-04 23:57:57.660899] [0x000082d0] [info] ensure_on_bed: need to ensure each object on beds [2026-03-04 23:57:57.660899] [0x000082d0] [info] Need to slice for plate 0, total plate count 1 partplates! [2026-03-04 23:57:57.660899] [0x000082d0] [info] Plate 1: pre_check 1, start [2026-03-04 23:57:57.660899] [0x000082d0] [debug] BuildVolume printable_area clasified as: Rectangle [2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::Model::update_print_volume_state, print_volume {0, 0, 0} to {256, 256, 250}, got 0 printable istances [2026-03-04 23:57:57.660899] [0x000082d0] [error] plate 1: Nothing to be sliced, Either the print is empty or no object is fully inside the print volume before apply. Slic3r::CLI::run found error, exit [2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0 [2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 0 , update slice result from 0 to 0 [2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0 [2026-03-04 23:57:57.660899] [0x000082d0] [info] Slic3r::GUI::PartPlate::update_slice_result_valid_state: plate 1 , update slice result from 0 to 0 RETRY STDERR: ### Expected results Producing a valid gcode ### Project file & Debug log uploads [arrange0_orient0.log](https://github.com/user-attachments/files/25752958/arrange0_orient0.log) [arrange1_orient0.log](https://github.com/user-attachments/files/25752959/arrange1_orient0.log) ### Checklist of files to include - [x] Log file - [ ] Project file ### Anything else? _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#470