Cookie a Curve

   3540   9   3
User Avatar
Member
43 posts
Joined: Aug. 2012
Offline
Hey there,

I can't figure out how to cutout a curve. It's a nurbs curve. I have a lot of curves creating a fabric pattern. I would like to be able to cut out a shape from this, but the only way I can get it to work is to sweep the curve, but then it's way too heavy.

I would like to be able to somehow cut out these curves. I realize they are being created with points, not faces… is there a work around, maybe converting them, cutting them out, then reconverting ?

See screenshots…

THANKS!!!

Attachments:
Screenshot-3.png (164.8 KB)
Screenshot.png (118.4 KB)
Screenshot-1.png (402.3 KB)

http://vimeo.com/garretthoyos/demoreel [vimeo.com]

http://animation.byu.edu/ [animation.byu.edu]
User Avatar
Member
258 posts
Joined:
Offline
clipSop, create the group, and delete whichever side you don't want. In your case you might need four clipSops but you could easily turn it into an asset with sliders to define the area you want.
User Avatar
Member
43 posts
Joined: Aug. 2012
Offline
Thanks for the reply. I tried the clip, but the problem is that then entire curve disappears, I only want a portion of it to disappear. See example file attached.

THANKS

Attachments:
CURVES.hipnc (91.8 KB)

http://vimeo.com/garretthoyos/demoreel [vimeo.com]

http://animation.byu.edu/ [animation.byu.edu]
User Avatar
Member
258 posts
Joined:
Offline
Here is a revised version of your file…I disable the join as it was connecting ends of different curves and labeled the clips. Keep in mind, that you do not necessarily need to move a clip on z as it will cut through all geometry infinitely through what ever plane you choose.

As well I would start with a nurbs line, append a uvTextureSop with average spline or whatnot, convert that to a polyline before passing it on to vops…that way you have good uv's down the line.

Attachments:
curves_150_revised.hipnc (111.5 KB)

User Avatar
Member
43 posts
Joined: Aug. 2012
Offline
thank you so much, the clip worked great. Do you know if theres a way I could get a circle shape cut out and not just straight lines?
http://vimeo.com/garretthoyos/demoreel [vimeo.com]

http://animation.byu.edu/ [animation.byu.edu]
User Avatar
Member
1743 posts
Joined: March 2012
Offline
If you'd still like the Cookie SOP to support curves, please file an RFE. You wouldn't be the only one, and it's good to know when multiple people want the same feature, so that it has a better chance of getting looked at.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
43 posts
Joined: Aug. 2012
Offline
cool, I just did, thanks for the tip, that's helpful, i'll be sure to do that in the future.
http://vimeo.com/garretthoyos/demoreel [vimeo.com]

http://animation.byu.edu/ [animation.byu.edu]
User Avatar
Member
258 posts
Joined:
Offline
Given your situation, if one wanted a little more control, what I would do is:

1. resample those curves so that it has enough points with a resampleSop.

2. Use a group with group by bounding box on and ordered off(click the enable button off on the first group tab.). Make sure the group type is points.

3. On the bounding box you can select from the dropdown, square, sphere or you can plug your own shape into the second input and select user defined.

You can now use this to control what points are selected and what shape you want.

4. Append a deleteSop, select your group and delete non selected.

5. Append a refine sop and use the unrefine tab to reduce the number of points on your curve.

Almost as good as cooke…
User Avatar
Member
43 posts
Joined: Aug. 2012
Offline
You're a boss. Thank you so much. Houdini really is this world of possibilities. I owe you one. ps your website is sweet, looks like you've done some fun projects.
http://vimeo.com/garretthoyos/demoreel [vimeo.com]

http://animation.byu.edu/ [animation.byu.edu]
User Avatar
Member
258 posts
Joined:
Offline
Thanks for the nice words…with Houdini I feel like it always one foot forward, so much too learn.
  • Quick Links