What I'm looking to do is create a script that will allow me to
- Import several sets of points from different .txt files. (I have points drawn in Rhino I need to export as such).
- Each .txt file would represent points in xyz (although z is 0 in the drawing I have)... and there would be a hierarchy of points. So each set would be given a different attractor value or polarity so that some point sets have stronger attraction than others...
- Then I can run the script and hopefully it will create some drawing that will show this network.. but I'd like to be able to change the attractor values, take out a set of points or a txt file to see what happens etc...
If it's possible to modify those scripts so that I can include (i have 7) attractor types that can be imported as .txt files that would really be amazing. I have no idea how to do this, but I'm guessing it would require a separate class for each different attractor type, using an Arraylist for the imported txt??
I really don't have the expertise to script something like this from scratch as I've only been using processing for a short while so modifying some existing ones that can explore what I want would be enough, even though doing something that's new and shows swarm intelligence would be incredible as well!
Thanks!
Edit: perhaps in another script the points would act via 'gravity' towards each other, so in the end, all the points will probably condense into a kind of black hole but the lines tracing the movement create a drawing that could be very interesting.
I'm currently trying to make a script that when you type in
plaintext, you get the Baudot 5-bit generation of it, like the old punched tape that was used.
The overall idea is to then, plug this into grasshopper for Rhino so that it can modify geometry.
I'm very new to processing and scripting so I haven't got far at all, not sure what the best way to do this is even.
My script so far only generates some ellipses when you press "A" (incorrect Baudot code for A - these are just markers for where the holes could be for all letters):
- I have to script the outcome for each letter in the same way? Or is there another way to treat it as a line of text?
- How do I get the x/y values of the holes to change each time a letter is pressed. ie with that code, if you press 'A' again, it will appear to the right of the 1st set of ellipses...
- ...or can I treat the dots as lines of text, so when it exceeds the width of the void setup, it drops to another line and you can still see it being punched in.
- I understand there can only be one
setup? Is there any way to see the plaintext as it is being typed as Baudot as well?
- Is it possible to plug this in to grasshopper via gHowl or do I have to do it another way? Am i wasting my time??
I'm very new to processing so it's no wonder I can't seem to get this to work.
I can get the NyAR4psg examples to work, and I can get the Saito examples to work, but I can't seem to work out how to integrate them so that I can use my own .obj files with AR.