Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- cs_tower
- ClearListener()
- tFile = "\\Desktop\\cut\\max\\cs_tower.txt"
- FS = (CreateFile tFile)
- Format "Frames %\n{\n" (AnimationRange.End - AnimationRange.Start) To:FS
- for Mdl in objects do (
- Format "\t%\n\t{\n" Mdl.Name To:FS
- for i = AnimationRange.Start to AnimationRange.End do (
- at time i
- 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
- )
- Format "\t}\n" To:FS
- )
- Format "}\n" To:FS
- Close FS
- -- camera_0
- select $camera_0
- tFile = "\\Desktop\\cut\\max\\camera_0.txt"
- FS = (CreateFile tFile)
- Format "Frames %\n{\n" (AnimationRange.End - AnimationRange.Start) To:FS
- for Mdl in selection do (
- Format "\t%\n\t{\n" Mdl.Name To:FS
- for i = AnimationRange.Start to AnimationRange.End do (
- at time i
- 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
- )
- Format "\t}\n" To:FS
- )
- Format "}\n" To:FS
- Close FS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement