Delete last Element of Copy/Resample

   3502   2   0
User Avatar
Member
33 posts
Joined: April 2015
Offline
Hi,

sorry for the noob question but i find no answer for me with google - i have a line where i do a resample and with a copy node i place on every point an object - now i want on the first and the last point no copied geometry - so for me there are 2 options - delete the points or the copys - with a delete node at the end of the chain i can delete the copyGroup_0 - but how can i get the size of the resampled points or the size of the created copys to delete the last element - (the number of the points can change).

maybe you have a link to tutorials for me to learn such expressions

Thank you very much!
User Avatar
Member
39 posts
Joined: July 2013
Offline
The HScript expression is $NPT and the vex expression is npoints(“path”)

So, for example if you type $PT==$NPT-1 into the Filter expression section of the delete node it will delete the last point.
User Avatar
Member
33 posts
Joined: April 2015
Offline
Sean Rowe
The HScript expression is $NPT and the vex expression is npoints(“path”)

So, for example if you type $PT==$NPT-1 into the Filter expression section of the delete node it will delete the last point.

works fine! - thank you very much! - maybe you can answer how would i access the amount of the groups after the copy node?
  • Quick Links