I had an idea for a feature that would make ‘cleaning up’ and refactoring patches easier.
In the more advanced IDE’s, there are ways to extract some code to a new function.
Most of the time you start adding stuff to your main procedure (or patch in vvvv). At a certain moment, you realize that it becomes complicated to understand, and that some of the functionality can be defined as 1 operation (1 action that could be described in words), and could possibly be reused at a later time.
I would love to have a function in vvvv, that allows you to
- select a bunch of nodes
- middle-click and choose ‘extract new sub-patch’ or something
- and have vvvv create a new module, complete with all in and out-pins (name taken from what they are connected to)
- and replace all these nodes by the newly created node, everything properly connected.
The only thing you would need to do afterwards, is change some input and output names that are unclear, to something that describes them better, save this node with a well-chosen name, and voila.