PDA

View Full Version : interactiv extrusions... plugin or mel script?


pixelranger
07-15-2009, 04:17 PM
Hi all.
I want to take on a small scripting project and I'm starting to wonder if I should do it in C++ instead of MEL (performance and interactivity in terms of openGL click and draw curves).

Basicly, what I want to do is make something that works like LightWave's Magic Bevel. What it does is recursively extrude along the mouse's path with options of progressively tapering the resulting tube/appendage. I also eventually want to add options for the parallell creation of a Nurbs Curve that could be used to adjust the path afterwards and maybe to use for automatic rigging (f. ex. splineIK with hair dynamics or particle based wiggle).

I'm guessing this is a task that should be done with c++ and the api, no?

Any obvious libraries I should be aware of or anything else that might kick me off in the right direction? I'm new to c++ but fairly proficient with mel.

benio33
07-17-2009, 11:56 AM
Answer is simple - API AND MEL ... aspecially when a big project is on the way. What I'd do if I were you is start off with MEL, get to the point where not enough control MEL gives you over some task, then do the hard MEL task with Python API until get to the point Python API will not handle the task correctly (probably you won't ever get to the point :) ), and THEN move to C++. After your WHOLE project works, and does what it is ment to do, I'd optimize its performence shifting to API C++ progressively STILL mixing C++ API and MEL. They never excluded each other, MEL and API are complementary.

CGTalk Moderation
07-17-2009, 11:56 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.