ScriptSpot

Forum topic · Scripts Wanted

.xyz file again, easy one :-)

By titane357 · 2012-03-21

Description

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 (3)

xyz points

Aliramadan · 2019-05-12

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

Try this script...

LittleLordPotala · 2012-03-29

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

Attachments

titane357 · 2012-03-27

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