Tyfx567 Posted May 23, 2015 Share Posted May 23, 2015 (edited) Hey guys!! I am wanting to make it to where I can make a list like my_list = [12,13,15,18,19] and if a point attribute equals any or all of those numbers then it will add those points that have that attribute to a group. I want to create multiple groups that have multiple particle systems attached to each group. If you look at my scene file you will see what I am trying to do along with examples of things I have tried to do. Similar to in python: (I am brand new to scripting so forgive me) my_list = [12,13,18,19] for num in my_list: if(@class == num): ingroup =1; I know I am mixing the two codes together but that is exactly what I am trying to do. Preferably I can do this in a pop wrangle since I am doing pops in this. I know I can do: if(@class == 13){ ingroup = 1;} else if(@class == 14) {ingroup = 1;} but that is really slow and not dynamic enough especially if I want to make multiple groups Thanks so much guys! Any feedback is appreciated!! Class pop network.hiplc Edited May 23, 2015 by Tyfx567 Quote Link to comment Share on other sites More sharing options...
pezetko Posted May 23, 2015 Share Posted May 23, 2015 Hi, there was couple of issues. Check attached file, there are working solutions for both python and vex. Petr pz_Class_pop_network.hipnc Quote Link to comment Share on other sites More sharing options...
Tyfx567 Posted May 24, 2015 Author Share Posted May 24, 2015 Wow this is perfect!!! Thank you so much!! 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.