Hi,
This is not a mel script, but a scene for design a function curve.
You design a function curve by expression sometimes for your rigs,
but it's not easy to see what it does !
Here is a simple scene, where some transforms are prepared to display the result.
You must edit an expression found un the scene called functions
Edit one of them or create a new function.
On a scene you will see somethings like :
For feedback :
- A spline curve for the feedback
- 40 'plots' to see positive curve (green), negative curve(blue), start point (red)
- A square that define 0,0 - 1,1 space of curve (normalized space)
For edit values :
- An expression (called functions, described below))
- an fx node where you can add some attributes, and edit them to tweak your curve
- you can change size of plots on plots group
- you can change visibility of plots curves or plane on each nodes
- you can find too a litte cube called "sample" to see a value of your function :
Just move the cube and you can see output value on translate Y
Sample of function i, expression:
if (fx.functions == 4) $output = (1-abs(pow($input,fx.pow)))/fx.divide; // dome_pow
=> fx.functions is an attribute to choose type of function you want to see
=> $output is a value produce by your function curve
=> $input id X axes values input in your function
=> fx.pow, fx.fivide are some attributes that you can edit or you can create a newer again
etc .. and add all newers functions or attributes
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.