scripting_rhinoDataRead

After a lot of trial and error, I have finally completed the rhino script function that reads the txt file from processing. As the examples given were all concerning excel files, a lot of further research has been undertaken in order to get to even this basic stage.

The script opens the txt file selected by the user, reads the data until the end of the line (one value), determines if the string is <= 3 characters, and if successful converts the value to an integer and stores it in an array. Anything larger than a 3 digit value is discarded as processing has a tendency to output weird numbers, particularly in the first few entries of each file (creates either a ‘null’ or a very long number).

The next step is to use this data to actually achieve something!

download the script here


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply