Jump to content

delete points on curve except first and last


Recommended Posts

I think there are many ways to do this. I would use this pattern:

0 $N

and set it to "Delete Non-Selected".

Mmm, maybe I didn't state it correctly. I don' t want to delete all points between first and last, only a percentage based on the pattern !*:10

Link to comment
Share on other sites

try this as a python expression in the pattern field


inc = 10
points2delete = range(1,len(hou.pwd().inputs()[0].geometry().points())-1,inc)
return points2delete
[/CODE]

It gives me an error :

Error: Unable to evaluate expression (Syntax error - extra tokens detected in expression (/obj/curve_object1/Br1_fence1/delete1/pattern)).

My bad, it was not correctly set to python. Seems to work now :)

Edited by br1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...