Masoud Posted October 27, 2022 Share Posted October 27, 2022 Hi guys, I would like to connect some points based on their "ptnum", using an attribute called "id". The problem is it doesn't work. How can I fix it? Thanks for helping. Connect Points.hip Quote Link to comment Share on other sites More sharing options...
Atom Posted October 27, 2022 Share Posted October 27, 2022 (edited) That's because all your IDs are unique. Add can only connect a series of points that share the same ID. Try altering your wrangle to this and observe the result. if (@ptnum==0){i@id = 0;} if (@ptnum==1){i@id = 0;} if (@ptnum==2){i@id = 0;} if (@ptnum==3){i@id = 1;} if (@ptnum==4){i@id = 1;} if (@ptnum==5){i@id = 1;} if (@ptnum==6){i@id = 2;} if (@ptnum==7){i@id = 2;} if (@ptnum==8){i@id = 2;} I often use Add following a trail sop out of particle system to create lines from a particle in motion. Trail count becomes line length in that type of setup. Edited October 27, 2022 by Atom Quote Link to comment Share on other sites More sharing options...
Masoud Posted October 28, 2022 Author Share Posted October 28, 2022 Wow, I never knew that. Thank you. Quote Link to comment Share on other sites More sharing options...
Fenolis Posted November 2, 2022 Share Posted November 2, 2022 On 10/27/2022 at 9:18 PM, Atom said: That's because all your IDs are unique. Add can only connect a series of points that share the same ID. Try altering your wrangle to this and observe the result. if (@ptnum==0){i@id = 0;} if (@ptnum==1){i@id = 0;} if (@ptnum==2){i@id = 0;} if (@ptnum==3){i@id = 1;} if (@ptnum==4){i@id = 1;} if (@ptnum==5){i@id = 1;} if (@ptnum==6){i@id = 2;} if (@ptnum==7){i@id = 2;} if (@ptnum==8){i@id = 2;} I often use Add following a trail sop out of particle system to create lines from a particle in motion. Trail count becomes line length in that type of setup. i@id = @ptnum % 3; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.