Jump to content
xmasophie

SOP Solver with changing numpt

Recommended Posts

Hey guys !

I'm currently working on a setup where I have to transfer Cd in a SOP Solver to "Curves" generated by Findshortestpath (in order to generate an attribute from this color).

These curves are evolving through time, find more points to connect to, so the count of total numbers are going up.

However, in the SOP Solver, it keeps the numpt of the first frame. So when I try to transfer P from the 1st Input, it does have the animation, but since it's keeping the numpt of the original frame, it tries to connect points and does not do what I want.

Is there a way to tell him to actualize the number of points it's using ?

Thanks a lot for taking time to read/answer me

originalcurves.PNG

postsolver.PNG

Share this post


Link to post
Share on other sites

Hello xmasophie

Without seeing the nodes I can only guess, but the npoint() expression might help you get the  correct number of points.

It returns the number of points the targeted node has. 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×