“cmd.get_extent” returns the minimum and maximum XYZ coordinates of a selection as an array: [ [ min-X , min-Y , min-Z ],[ max-X, max-Y , max-Z ]]
cmd.get_extent(string selection="(all)", state=0 )
def get_extent(selection="(all)",state=0,quiet=1):
get_extent | api