Notifications
Clear all

[Closed] Terrain spot heights

This is probably quite a simple question, however I am quite new to maxscripting.
Basically I have a scene with hundreds of editable text spline objects imported in from a cad file, each of these text objects has a number which relates to the height I want to move the object to.

These text objects are simply spot heights taken from a terrain survey, however at the moment they all have a Z height of 0.0.

As I mentioned these spot heights are all seperate editable text splines in max and essentially all I need is a script that can copy the numbers from the text field and paste it into the z height of the object and then I can use these objects as reference points to snap to create a basic terrain model.

There are about 2000 of these spot heights in my scene and would really appreciate any useful tips or links to scripts that could do this.

Thanks

D.

2 Replies
 lo1

if they are infact text objects and not just editable splines, select all these objects and run this code:

for o in (selection as array) do o.position.controller.z_position=o.text as float

Thanks that worked brilliantly.

D.