Advertisement
Guest User

Untitled

a guest
May 27th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. -- cs_tower
  2. ClearListener()
  3. tFile = "\\Desktop\\cut\\max\\cs_tower.txt"
  4. FS = (CreateFile tFile)
  5. Format "Frames %\n{\n" (AnimationRange.End - AnimationRange.Start) To:FS
  6. for Mdl in objects do (
  7. Format "\t%\n\t{\n" Mdl.Name To:FS
  8. for i = AnimationRange.Start to AnimationRange.End do (
  9. at time i
  10. Format "\t\t% % % % % % %\n" Mdl.Pos.x Mdl.Pos.y Mdl.Pos.z Mdl.Rotation.x Mdl.Rotation.y Mdl.Rotation.z Mdl.Rotation.w To:FS
  11. )
  12. Format "\t}\n" To:FS
  13. )
  14. Format "}\n" To:FS
  15. Close FS
  16.  
  17. -- camera_0
  18. select $camera_0
  19. tFile = "\\Desktop\\cut\\max\\camera_0.txt"
  20. FS = (CreateFile tFile)
  21. Format "Frames %\n{\n" (AnimationRange.End - AnimationRange.Start) To:FS
  22. for Mdl in selection do (
  23. Format "\t%\n\t{\n" Mdl.Name To:FS
  24. for i = AnimationRange.Start to AnimationRange.End do (
  25. at time i
  26. Format "\t\t% % % % % % % %\n" Mdl.Pos.x Mdl.Pos.y Mdl.Pos.z Mdl.Rotation.x Mdl.Rotation.y Mdl.Rotation.z Mdl.Rotation.w Mdl.fov To:FS
  27. )
  28. Format "\t}\n" To:FS
  29. )
  30. Format "}\n" To:FS
  31. Close FS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement