Could create Nurbs primitives in vex?

   863   3   0
User Avatar
Member
620 posts
Joined: 11月 2013
Offline
Hi,

Could create Nurbs primitives in vex?

Thanks!
User Avatar
Member
4486 posts
Joined: 2月 2012
Online
Hi,

There is no way to do this per addprim VEX function:
https://www.sidefx.com/docs/houdini/vex/functions/addprim.html [www.sidefx.com]

It doesn't support NURBS primitives. I have an RFE about this #124932
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
2034 posts
Joined: 9月 2015
Online
jerry7
Could create Nurbs primitives in vex?

Like animatrix said, that you can't actually as an end result create a nurbs curve through vex.

However, you can create a spline/nurbs curve with vex, and within/from vex define what that spline/nurb shape should be - virtually.

It's just that once you go to creating the curve as geometry you have to 'convert' it to a polyline/polygon.

This is akin to creating a curve with a curve node then taking the next step of putting it through a resample node.

You can do the same with vex, just minus of having the visualization (created geometry in viewport) of what you get from a curve node.

In this file the first node creates and works in spline space. The second takes information and creates the polyline.
Again, in this set up you can work in the spline space and not have to work in polyline/polygon space to change it's shape.

Edit: Of course you could add a convert(to Nurbs) node after in my example file.
Edited by BabaJ - 2023年4月28日 10:10:48

Attachments:
Vex_Spline.hiplc (106.6 KB)

User Avatar
Member
620 posts
Joined: 11月 2013
Offline
Thanks! I'll look and test it.
  • Quick Links