cwisbg

simpleReadFrame/translate from file

May 2nd, 2012
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from pymel.core import *
  2. sl = selected()
  3. dataPath = "E:/"
  4. frames = open("{0}/frames.txt".format(dataPath), "r").readlines()
  5. moves = open("{0}/tx.txt".format(dataPath), "r").readlines()
  6. i = 0
  7. for f in frames:
  8. currentTime(int(f))
  9. move(sl[0],float(moves[i]),0,0)
  10. i += 1
Advertisement
Add Comment
Please, Sign In to add comment