Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import scriptcontext as sc
  2.  
  3. if not sc.sticky.get('triplet'):
  4.     sc.sticky['triplet'] = (None,(None, None, None))
  5.  
  6. xyz = (x, y, z)
  7. for i, (u, v) in enumerate(zip(xyz, sc.sticky['triplet'][1])):
  8.     if u != v:
  9.         sc.sticky['triplet'] = (i, xyz)
  10.         break
  11.  
  12. a = sc.sticky['triplet'][0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement