Jump to content

Selecting every Nth point on a static spline


Recommended Posts

Hi all,

 

I'm looking for a way to select every Nth point along a spline. 

Same would go for a static mesh.

 

It's something that there seems to be a wealth of tutorials on, if we're talking about using the Formula Effector on Mograph objects, but where are the tutorials for this for addressing simple static objects?

 

Guessing there might be an Xpresso solution somewhere - but I haven't figured it out yet.

 

Any help would be massively appreciated!

-NpF

 

 

Link to comment

@Teknow

 

Thanks for the response! Cool solution, though my aim was ultimately to Break and Delete Nth points, rather than transform them. I guess I should have mentioned this in the first place 😳. I do wonder though if there's an Xpresso-based solution that would allow your node-network to select the actual points (or rather, see the actual points selected / yellow-highlighted in your viewport - not sure what the difference is, technically). I would have thought a 'Point Selection' tag could be dragged into the Xpresso window and would have some Input port that would allow you to feed the activated point id numbers into it so you could get a visual of it in your viewport, though this doesn't seem to be the case.

 

In any event, I ended up finding a very simple but workable solution using the Point Selection tag in conjunction with Formula Field ( mod(id;x)=0 ).

File attached.

 

Thanks again!

-NpF

 

Capture.JPG.28809683a3ad0f00c5c9186bc0294f87.JPG

select-nth-point-on-spline.c4d

Link to comment
  • 1 month later...

Well this was very helpfull, had 1000 splines of the same length merged into one object and wanted to select every first vertrice of every spline to anchor it with in xparticles. Create a selction tag, add a formula field en type mod(id;27)=0 pres play a few frames and force the selection set to show its selection ... Yaj!

 

Wonder how i could have solved this if the spline had different lengths ... Hm same lengt but vary the extrusion distance ...

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • LATEST ACTIVITIES

    1. 220

      Scene Nodes | Capsules file pit

    2. 3

      Flipped clones in multi-segments curve

    3. 2

      How to create continuous UV texture for irregular wall like shapes ?

    4. 52

      Looking forward to the next C4D release

    5. 3

      3DTOOLS.INFO | SUMMER Special - 30% OFF!

×
×
  • Create New...

Copyright Core 4D © 2023 Powered by Invision Community