Search the Community
Showing results for tags 'persistent'.
-
Hello guys, I found a lot of topics on this and no one seems to solve the issue but i think it might not be impossible I have this ripping cloth with and extrude node at the end, so it's changing it's point count and consequentelly every point number is also changing. Is there a way to add a unique and persistent ID to every point, creating new IDs for the new ones? Odforce.id.hiplc
- 4 replies
-
- topology
- persistent
-
(and 1 more)
Tagged with:
-
Hey everyone, I currently have a plexus effect by blending a few tutorials together (tinytuts and Danil Krivochko). I'd like to take it a step further and create a persistent plexus effect where the connections at frame 1 remain throughout the simulation- never breaking or creating new connections. I have this code from the tinytus tutorial: if (ptnum % ratio == 0) { int myprim = addprim(0,"polyline"); int nearpts[] = nearpoints(0,P,maxdist,maxpts); for (int i = 0; i < len(nearpts); i++) { addvertex(0,myprim, ptnum); addvertex(0,myprim, nearpts[i]); } } It's creating primitives based on nearby points. So in order to get the persistent plexus look, I need to use maxdist and maxpts to create the look I want, but be able to keep max distance from influencing the connections after I get my initial look. I think I need to start by establishing a connection between points at frame 1, so they remember who they were connected to during the simulation. I might be able to do this by somehow storing nearpts[] data into each point with an attr? Or maybe I can create a new if statement that says in pseudocode that may or may not look like python: int nearpts[] = nearpoints(0,P,maxdist,maxpts); if frame == 1: create a list called initpts and store any points from nearpts[] into this new list else: pass Then change the for statement to say for each initpt in initpts: addvertex(0,myprim, ptnum); addvertex(0,myprim, initpt); Is there a way that I can utilize python to create this effect here? Another thought I had was to use a solver sop because I've seen that it can calculate what went on the frame before, but I'm really struggling with how to proceed with this direction. A nudge in the right direction would help me out a lot, thanks! Here's my file so far. od_persistantPlexus.hiplc
- 3 replies
-
- primitive
- connection
-
(and 3 more)
Tagged with: