One just potty trained and working on the second...
REMEMBER: Toggle all "B_Axis Error Override" properties to FALSE before exporting gcode for your machine.
This "Use Rotation" property will need some adjustments within the code. I don't think it functions quite as smoothly as we would like. It does, nonetheless, provide the intended result within my limited testing.
I have updated the scripts attached to the initial post of this topic. Version 1f_testing should respect XYZ linear translations done within Job setup. Also, a property to select the rotational axis is available.
Please don't be upset. I opened the file, toggled the "Reverse Direction" property, and recomputed. Wha-lah.mlampert wrote: ↑Sun Apr 28, 2019 10:21 pmI finally had some time to look at your changes and I might be doing something wrong (I usually do)...
The pocket is in the positive Z direction and doesn't need any rotation. There's also something funny with the depths happening. Regardless of what I set the "FinalDepth" to it gets reset to being -10 during the recompute. And although "StartDepth" is at +22 the actual path starts at -22.
It looks like you used the 3D Pocket tool originally. It does not support 4th-axis, yet. You need to use the Path Pocket Shape tool - circled in the attached image.