“cmd.h_add” uses a rudimentary algorithm to add hydrogens onto a molecule based on current valences.
cmd.h_add( string selection="(all)" )
def h_add(selection="(all)",quiet=1):
h_add | cmd.h_fill | api