Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def _Move(t, p):
  2.     coords = ["%s%f" % (x, y) for x, y in zip(("X", "Y", "Z"), p) if y != None]
  3.  
  4.     if len(coords) != 0:
  5.         return t + " " + " ".join(coords)
  6.     else:
  7.         return ""
  8.  
  9. def RapidMoveTo(p):
  10.     print _Move("G0", p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement