Read data from csv txt

4 votes
Version: 
0.1
Date Updated: 
02/06/2015
Author Name: 
Pixamoon

Just simple script / code to read data from csv files exported from Excel and then create objects - (here: spheres)

How CSV should look:
Every planet in single line. Every value separated with "|" character.

for eg: (name|radius|x|y|z|sphere segments)

Sun|20|0|0|0|12
Earth|2|100|100|0|12

And so on.

If you need apply specific colors then add extra 3 numbers controlling rgb (egz |0|10|200)

Before run change file location in code or copy "SolarSystem.txt" file to C:\

Cheers,

AttachmentSize
read_data_from_csv-01.ms360 bytes
solarsystem.txt39 bytes

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pixamoon's picture

`

Sorry, I'm not sure what problems to solve do you mean ?

liuzc188's picture

solved?

have you solve your problems? I want to do the same thing, but I don not know how to do, could you
help me?

凡心所向,素履以往,生如逆旅,一苇以航

liuzc188's picture

太棒了!

非常感谢!

凡心所向,素履以往,生如逆旅,一苇以航

pixamoon's picture

`

Hi, can you explain bit more ?

amitgautam84ster's picture

retrieve data of 3d max in excel.

Hi All,

Is there any one who can help me to get data of 3dmax in excel/note pad.

amitgautam84ster's picture

retrieve data of 3d max in excel.

Hi All,

Is there any one who can help me to get data of 3dmax in excel/note pad.

pixamoon's picture

:)

great :)

yeah, if you add some point helpers on the end of insulators with some proper naming. Then new script can connect them (by number order) with spline + add middle lower point. If this make sense ? :p

Sure for score :) you can try my other scripts and add +1 or comment / review if you like them or the idea (here or turbosquid).

robmyers67's picture

csv load

First impressions are this works a treat and I am totally impressed. Is there anything I can do on the forum to raise your score? praise you?

Really happy with this.
You mentioned that the pylons can be strung as well is that right?

One happy person!

Rob

pathToWorld's picture

cool

very cool
+1

pathToWorld's picture

cool

cool!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.