help with Script operator: find neighbors between events - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html) +--- Thread: help with Script operator: find neighbors between events (/thread-1180.html) |
help with Script operator: find neighbors between events - Geoff - 10-06-2019 Hi Tyson, I'm trying to replicate something called the space colonisation algorithm, you must have heard of it. Not so difficult as soon as you can loop thru neighbors and average their positions...I assume there's no other way than the script op? So, I can't figure out how to use the "GetEventParticles" function and how to find neighbors particles between several events...Then, I'd like to sum(increment) and average(weight by count) the found datas from neighbors, Would you please show me an example? any tips would be much appreciated! Thanks! RE: help with Script operator: find neighbors between events - Geoff - 10-08-2019 Sorry Tyson, my bad, I'm new to c#... I just had to type Code: List<int> myList = tf.GetEventParticles("myEvent_001"); So, let me reword my question... Is there a way to find at least the average position of a group of neighbors or acces this list (with the different sorting methods) via simple operators? Or are you planning to add some options in the set Target op or within the particle clusters? maybe I missed something... In any case, I really love your tool! I may suggest you to add different algorithms in the Grow operator so you can choose between DLA or SCA...would be great, I love effects with growing stuff! FYI, there's also a few simple meshing algorithms for plants and vein networks to use in combination with DLA or SCA. With your DLA algorithm, (specially in my case because I want proper branch radius and connections) I found that using spline for meshing is not always apropriate.. RE: help with Script operator: find neighbors between events - tyFlow - 10-09-2019 Hi Geoff, I hadn't heard of that algorithm, but it shouldn't be difficult to code up. I will read up on it more when I get the chance. If you need specific neighbor operations, there are functions available in the Script operator to access neighbor properties. I'm not really sure what a generalized operator solution would look like in that regard, it seems your needs are pretty specific. |