Jump to content

Selecting every Nth point on a static spline


pfistar

Recommended Posts

  • Customer

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 post
  • Customer

@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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • LATEST ACTIVITIES

    1. 4

      Corona Renderer 7

    2. 0

      Horizontal tearing in Sketch and Toon renders

    3. 0

      Picture viewer much brighter than viewport

    4. 4

      Make a hat fall through the air with controlable turbulence, lift and wind???

    5. 4

      Corona Renderer 7

×
×
  • Create New...

Copyright Core 4D © 2021 Powered by Invision Community