I have an idea for an interesting feature in MMF2.
Basically, it's the possibility to run a "one-time" loop as an object's action, specifying a parameter instead of a number of steps, like a function.
Since it would be an object action, this would make it possible to make "custom actions" that get executed for each object selected in an event, like any other actions are executed in MMF.
And the function condition would select the object that called it.
So let's say that I have a bunch of active objects in my frame and I make an event for those that are on the lower half of the frame. Each of the selected object instance would call the function (or one-time loop) having it run once for each selected object. And the function itself would be a series of events with the object's function condition on top. And instead of a loop index value, it's a parameter that can be used by the function.
Also maybe it would be possible to use it with qualifier events, so that calling a function for a qualifier would run it for each of the selected members of the group, with their own version of the function.
Here's the basic idea for events: (ET = edit time, RT = runtime)
Object condition, On function
ET- Asks an expression for the string name of the function
RT- Runs when called from the object's actions, and re-selects the object that called the function.
Object action, Call function
ET- Asks an expression for the string name of the function
ET- Asks an expression for the integer or float parameter that the function can use
RT- Immediately runs the series of events with the "On function" condition that has the same string name, for each selected objects in the current event.
RT- Will finish and continue to the next actions once the function is ended.
Object action, Stop current function
RT- Finish the current event, but skips all the other events with the "On function" condition of the same name. (making them false)
Object action, Repeat current function
RT- Restart the series of events with the "On function" condition of the same name, from the top. (To make a looping function)
Object action, Change current parameter
ET- Asks an expression for the integer or float parameter that the current running function can use.
Object expression, functionParam("object","function")
ET- Asks an expression for the string name of the function
RT- Returns the current value of the specified function's parameter.
All of that is very similar to what loops already are, but with using MMF's built in object selection features.
Would this be possible for future MMF2 build?




Reply With Quote












