getpos_to_ae.py 273 B

1234567891011121314151617
  1. ### UserInput ###
  2. setpos = "setpos 228.738983 -1478.905029 22.854500"
  3. def toInt():
  4. st = setpos.split()[1:]
  5. ilst = [int(float(i)) for i in st]
  6. x = ilst[0]
  7. y = ilst[1]
  8. z = ilst[2]
  9. return [-y, -z, x]
  10. if __name__ == '__main__':
  11. print(toInt())