tipforeveryone Posted October 29, 2016 Posted October 29, 2016 Features - Record camera path movement by controlling camera itself, what you see is what you get - Path information can be saved to sperated file for later use - Attach saved path file to any entity to playback recorded path - Camera movement can be adjusted for smooth and better path record - Great for cut scene or object with motion. Demo What I did in this demo: - Record the first path and save it to path1.lua - Record the second path and save it to path2.lua - Create a small box then attach each of saved path files - Attach path1.lua to Pivot, attach path2.lua to box, watch their combination How to use - Download and extract 2 lua files to anywhere in your project folder, example: Scripts/Recorder - Create a Pivot in your map then attach PlayerControl-PrototypeB.lua to it - Create a lua file then choose it as" Record File" in Script tab of the pivot ( This is required! ) - Run the game - Press R to start/stop record - Press P to playback recorded path - Press Esc to exit - Create an entity, ex: a box. Attach ObjectPathMovement.lua to it - Choose saved record file ( This is required! ) - Run the game - Press J to start playback recorded path for the entity Other attributes explaination PlayerControl-PrototypeB.lua - Playback Start: Execute playback process right after the game start, using data from choosen record file - Clean Screen: Hide all HUD elements while playback - Both Playback Start and Clean Screen are good for cutscene camera - Focus Object: Drag any entity which you want camera to point at while moving, this will ignore recorded rotation of camera. ObjectPathMovement.lua - Play Rotation : if this is false, entity will ignore recorded rotation ObjectPathMovement.lua PlayerControl-PrototypeB.lua 9 Quote
Roland Posted October 29, 2016 Posted October 29, 2016 Totally off topic. What's that music? Quote Roland Strålberg Website: https://rstralberg.com
tipforeveryone Posted October 29, 2016 Author Posted October 29, 2016 Totally off topic. What's that music? Here you are https://www.youtube.com/watch?v=Xh1rGVFS4eY 1 Quote
tipforeveryone Posted October 30, 2016 Author Posted October 30, 2016 Finished and updated topic Hope you enjoy! 2 Quote
Charrua Posted October 31, 2016 Posted October 31, 2016 great! thank's for sharing just a small note (happens to me : in: function Script:Record_Mode_Toggle() FileSystem:WriteFile retutn null if lua sandboxing is enabled a check for a null and an advice would be nice Juan 1 Quote Paren el mundo!, me quiero bajar.
tipforeveryone Posted October 31, 2016 Author Posted October 31, 2016 Thanks Juan, I can't find anyway to fix this atleast it work well with sanbox off Quote
Stefos Posted February 19, 2017 Posted February 19, 2017 Hi, I have a problem....when doing as you have shown in video and is written in your "How to use" section I get an error "attempt to index field "recordStream" (a nil value) line 227 ? Please help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.