hopbin9 Posted February 18, 2011 Share Posted February 18, 2011 Hi, I need a line that spirals. Wish Houdini had a richer set of primitive objects to work with. Anyone know how to create a spiral and control the turns and radius? Thanks, Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted February 18, 2011 Share Posted February 18, 2011 I know using point sop and a simple expression for position you can do it easily! I don't think there's a built-in tool for it. I don't have access to Houdini on this machine, I can make a file for later and upload it here. Quote Link to comment Share on other sites More sharing options...
rdg Posted February 18, 2011 Share Posted February 18, 2011 LineSOP, PointSOP and http://www.sidefx.com/docs/houdini11.0/ref/expression_cookbook Quote Link to comment Share on other sites More sharing options...
rurik Posted February 18, 2011 Share Posted February 18, 2011 Hi, I need a line that spirals. Wish Houdini had a richer set of primitive objects to work with. Anyone know how to create a spiral and control the turns and radius? Thanks, The expression cookbook has a log spiral expression http://www.sidefx.com/docs/houdini11.0/ref/expression_cookbook Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 18, 2011 Author Share Posted February 18, 2011 Thanks guys for the quick response. That's perfect! Quote Link to comment Share on other sites More sharing options...
graham Posted February 18, 2011 Share Posted February 18, 2011 Because everyone loves VOPs and lots of controls, here's a take on a helix (spiraling line) with a bunch of controls for radius, length, number of turns, offset and orientation. I built one a long time ago but couldn't find it so I quickly remade it. helix.hip 3 Quote Link to comment Share on other sites More sharing options...
Macha Posted February 18, 2011 Share Posted February 18, 2011 Ramp-variation on Graham's helix helix.hip 2 1 Quote Link to comment Share on other sites More sharing options...
Skybar Posted April 30, 2014 Share Posted April 30, 2014 Cheers Graham, with some tweaks and modifications it works great to make curly hair with Quote Link to comment Share on other sites More sharing options...
johnLIC Posted March 4, 2015 Share Posted March 4, 2015 (edited) Thanks! Another satisfied customer! D'oh - is it screwing up the tumbling in the perspective viewport? Now that I have the spiral in my scene, it seems like the space bar-middle-mouse motion is 90 degrees off from what it should be. Is there a quick-fix for that? Still, nice spiral. Edited March 4, 2015 by johnLIC Quote Link to comment Share on other sites More sharing options...
Mohanpugaz Posted November 15, 2018 Share Posted November 15, 2018 vex version create attribute wrangle , connect nothing run over > detail(only once) add below code //create parameters; float turns = ch("turns"); float length = ch("length"); int count = chi("point_count"); vector pos; float mask; float rad; float radRamp; float radmult = ch("rad"); pos = 0; for (int n; n<count ; n++){ mask = (n/float(count)); radRamp = chramp("radius_ramp",mask); radRamp = fit(radRamp,0,count,0,1); rad = radRamp * radmult * 1000; pos = set(sin(mask*turns)*rad,-cos(mask*turns)*rad,mask*length); addpoint(0,pos); } create add sop set to polygon > by group Thanks! 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.