best way to loft a nurbs surface from a curve via script

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 01 January 2014   #1
best way to loft a nurbs surface from a curve via script

hi

I am currently writing an autorigger for a variant of a ribbon rig in maya. since day one I have the problem that I never get a nice nurbs surface.
imagine the curve to be a straight line from (0,0,0) to (10,0,0). to loft a surface from that I'd usally duplicate the curve and move it +1 on the z-axis. that way I get two parallel curves. this works in a couple of cases but for example not if the curve is parallel to the z-axis my nurbs surface ends up beeing infinitly narrow. if I'd do this by hand of course I would just move the duplicated curve another way but since this is scripted I have to figure out a different way. additionally this does of course not work well for acutally curvy curves because they do not end up beeing the same width all the time.


any help and ideas are appreciated
 
Old 02 February 2014   #2
You can sample joints or other transform nodes along that curve, orient them along it using the previous object as rotationUp object (to prevent world up vector flipping on s-type curves), parent a second set of nodes on top of them, and move those in local up axis. from there generate a new curve along those new points, rebuild it with the rt flag on 2 so it matches the knots from the first curve, and do your loft from those. Then maybe delete nodes you dont need anymore from that second curve generation.
I use this method to create upVector curves for spline rig scripts.
 
Old 02 February 2014   #3
thanks for answering. I figured out that I could use joints and their local axis too just like you said but using the previous object as a up object was exactly what was not working yet.

big thanks
 
Old 02 February 2014   #4
finally finished my autorigger so far if you want to have a look:
http://www.creativecrash.com/maya/d...iable-fk-rigger
 
Old 02 February 2014   #5
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:03 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.