Open MR-Alex42 opened 6 years ago
I like this idea! I think it might also be done together with the Undo/Redo (https://github.com/Frooxius/NeosPublic/issues/7) feature, since that requires storing information about being able to repeat certain action.
I'm not fully sure how well it would work by monitoring the data tree, it might be a bit unclear how to transfer changes from one to another , like for objects that have different structure or multiple of the same type of component and so on.
Another alternative could be offered by the dynamic scripting though, although that'd be more involved. You could write arbitrary script to perform something on the object.
Yes. Combining the with the Undo/Redo feature makes a lot of sense. I was also thinking of recording the macro steps in an actual scripting language (C#, Lua) like you do it in Microsoft Office which creates VBA scripts. Doing so would enalbe easy enhancements and parameterization of the macros and would allow beginners to understand scripting in Neos.
Oh yeah. I actually really like what Blender does, where most tools actually execute Python commands and you can open up the history to see which ones were ran. You can use that to figure out how to automate the tasks and also internally to re-run the same actions. For undo they'd need to log commands to undo the specific action as well.
However it would mean postponing the implementation until the dynamic scripting is allowed (and sandbox is integrated) or re-implementing it after it's there.
I'd rather wait for the sandbox and dynamic scripting to be available before implementing this feature.
I was wondering if it would be possible to automate some workflow steps with recordable macros. Example: I want to attach a grabbable component to a number of objects.
Technically the recording could monitor the data tree of the object and save all changes between the start of the recording and the end. If the macro is executed it would apply the same changes to the object the gun was shooting at.