def GetStrucNextOff(sid, offset):
    s = idaapi.get_struc(sid)
    return -1 if not s else idaapi.get_struc_next_offset(s, offset)
Get next offset in a structure
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetStrucNextOff