After the Dynamo teams persentation today on design script I got energized and dove back into Dynamo’s Imperative functions. I have had the goal for a few years to get Kmean to work in Design script with no luck. I got a bit closer today but still confused and not even sure if it is even possible.
Attached is the .dyn with the required function. How to inbed them into a while loop is the question?!?
Replication guides don’t work within Imperative blocks.
You could however create an associative function that does the needful and call it within the imperative block
Thanks @Vikram_Subbaiah!! What version of Dynamo did you use?
I open your script using Dynamo 2.6.1 and got one large cluster. I’ll be taking a closer look this weekend.
Try this new look daily build
I’ve used a csv file (change attached txt extension to csv) instead of Remember Kmeans-20210910-2.dyn (16.0 KB) pnts.txt (218.9 KB)
Ooh this is interesting. I was just looking at K Means for image segmentation…
Did you ever use it to group by color?
(Im researching ways to find all the ‘empty’ space in a view).