Custom layer gcode when printing by object

This feature seems to be disabled in Preview mode when printing by object rather than by layer.