Hard Ops Thread

Hi, @masterxeon1001,

I have a proposal for improving the “Lattice” operation in HardOps that I applied to my local copy of HardOps. It has been a very nice quality-of-life feature.

I am proposing an bool option to set the lattice modifier to “Cage.” This change ensures that the mesh won’t jump back to the previous undeformed state whenever you go back to your mesh. It will also make it clearer how your mesh actually looks in edit mode without switching back to object mode. Before this change, I always manually toggled the modifier “Cage” option. Having a checkbox labeled “Edit Mode Cage” in the operation pop up menu would be very helpful.

Additionally, a boolean option called “Enter Edit Mode” for directly entering edit mode to the lattice withoute any delay would also be very nice, since it woulde save one extra click.

Berfore:
lattice no cage

After:
lattice cage

Modifed code line 154 in lattice.py, (the last two lines)

def add_lattice_modifier(self, context, obj, lattice_object):
    if obj.type == 'GPENCIL':
        lattice_modifier = obj.grease_pencil_modifiers.new(name="Lattice", type='GP_LATTICE')
    else:
        lattice_modifier = obj.modifiers.new(name="Lattice", type='LATTICE')
        lattice_modifier.show_in_editmode = True
        lattice_modifier.show_on_cage = True