.xyz file again, easy one :-)

Hello
I have .xyz files like this : x y z with tab.
----
524750 6287250 170
525000 6287250 190
525250 6287250 201
525500 6287250 197
525750 6287250 191
.....
-----
I would like to know is anybody can make a script which read data in the file order :
- make a spline with all the vertexes with the same y value (200 vertexes)
- make this with all x values (200 lines)
so it would end with 200 splines with 200 vertexes each.
I hope that cross section + surface can make a nice mesh with this.
Thanks.

Comments

Comment viewing options

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

xyz points

dear sir,

i have a xyz points file every x y z coordinates like

x y z
122 45 2
126 44 3
136 30 4

can i put them into 3ds max with spline between them?

please help me

thanks in advance

a>r

LittleLordPotala's picture

Try this script...

I attached a script with a sample *.xyz file (in zip archive).
If your xyz file has a different template, you will need to modify the script.
It works for me on 3ds Max 2012.

The script generates one shape with multiple splines,
so you just have to add a surface modifier (you don't need cross section).

Best regards

AttachmentSize
create_splines_from_xyz_file.ms 941 bytes
points.zip 2.92 KB
titane357's picture

ok. Can somebody explain how

ok.
Can somebody explain how to read a text file with tabs ? Thanks.

Comment viewing options

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