Guest User

export animation info

a guest
Dec 8th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. import bpy
  2.  
  3. #exports some info from NLA editor in text, like strip names, start and length || by Teh_Bucket
  4. names = []
  5. theData = []
  6. nlaStrips = bpy.context.object.animation_data.nla_tracks[0].strips
  7. #gets all the info and puts it in theData and names
  8. for i in range(0, len(nlaStrips)):
  9.     names.append(nlaStrips[i].name)
  10.     theData.append([nlaStrips[i].frame_start, nlaStrips[i].frame_end])
  11.  
  12. for i in range(0, len(names)):
  13.     print(i,names[i])
  14.  
  15. for i in range(0, len(theData)):
  16.     print(theData[i][0], theData[i][1])
Advertisement
Add Comment
Please, Sign In to add comment