| **Using equations to build curves**
on Apr 7, 2005 at 3:32:30 pm |

How would I set up a curve to be generated by an equation? I want to create a motion path not by creating CVs, but by using a mathmatic equation. In C4D, for instance, there is a function curve that does this.

I know I could just use an expression on the objects themselves, but to help quickly pre-vis the scene (there are thousands of individual objects), I'd like to use motion paths to see where objects will be going.

Hope that makes sense.

| **Re: Using equations to build curves** on Apr 7, 2005 at 5:42:56 pm |

If you could do an expression you can do it in mel. What you can do is look at the curve mel command, and use your mathematical expression to place the curve CV points in space. You'll have to pick a sampling level and how many samples to take and iterate over those samples to place the curve cv points. You have the option to place the cv's in world space or in relative space (relative to the last cv placed).

curve -d 3 -p 0 0 0 -p 3 5 6 -p 5 6 7 -p 9 9 9;