Grasshopper

algorithmic modeling for Rhino

Text input to Baudot code to affect/decay geometry (Processing -> grasshopper via gHowl)

Hi All

I'm working on a script in processing that creates the 5-bit baudot code when you type letters and number. What I want to do is plug it into grasshopper to dematerialise or affect geometry in some way.

I've attached the processing sketch and the grasshopper script I'm working on, I would really appreciate any help as there are a few issues at the moment:

- The message that is sent from processing is not the image created of black circles, instead it is the codes 'a' (large black ellipse) 'b' (small black ellipse) 'c' (no ellipse) that is sent. This could work, but then what happens is grasshopper receives the message as 'aabaca' for example.
- It may be better that the message sent is the black dots/white space, however, but I'm not sure how what to add in the processing script to do this (more of a gHowl/processing q)
- I've managed to convert 'aabaca' into a binary number for example 11101 ( you'll notice 'b' (the small ellipse) is omitted as it is a feed hole and not part of the 5-bit baudot) so then I get 5-digit numbers made up of 1s and 0s, but I don't know how to split this into 5 different streams which can be either 1 ('on') or 0 ('off'). Is there any way to split the number in such a way in grasshopper or do I have to modify the processing script? 
So 11010 would be converted to 5 streams:
1st  - 1
2nd - 1
3rd - 0
4th - 1
5th - 0
- Also, for some reason, when I type a couple of letters in the processing sketch (when I run it)... it sends streams and streams of information. So if I type "hello" it will start spewing 'acbacaaabaccccbaccacbaaaccbacaacbacaaabaccccbaccacbaaaccbacaacbacaaabaccccbaccacbaaaccbaca..." much more than is required. I don't know why it does that.
 
The goal is to create some geometry that will dematerialise as text is being inputted. This means that there should be an accumulative effect, rather than the streams changing between 0 and 1. At the moment, it seems that the streams just change (10101 to 11000 to 01001 for eg. depending on what you type). How can I have an accumulative effect, and how can it be translated into some kind of behaviour to modify geometry in grasshopper???
 
Not sure if that all made sense, but I've attached the files so if anyone gets a chance to test it, the issues will be clearer. Thanks in advance!
 

Views: 534

Attachments:

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service