@Zero I’m not sure of any gcode commands that can modify infill percentage, unfortunately; you’ll have to check me on that though because maybe there is a way but idk.
Good news is, you can modify the infill percentage by layer in a much more brute force method through using a modifier with the following steps, generally speaking:
Summary
- Right-Click Part → Add Modifier → Cube
- Click the new modifier that pops up over in the tree then scale the shape based on where you want more infill.
- Ensure you only have the modifier shape selected over in the tree → Strength Tab → Sparse Infill Density (say 100% for this case).
- Slice away. In my example here, everything layer 30 and below in 100% infill and 15% layer 31 and up.