-
dsreid 1 posts
Hello I wonder if anyone can help. Im a Max Script newbie and Im using max design 2010 and importing FLT mesh files to a MAX scene.
My project is a cityscape scene which coveres a 3 squre km area, containing up to 2000 buildings. The building models have come from a seperate company in FLT format which can be used in 3dsmax. When I import each building model they come in at 0,0,0 each on top of each other and not in the positions they're supposed to be in. Ive got a text file that gives the details of each file and building position as follows:
ss_id | openflight | astext
-------+-----------------------------------------+----------------------------------------------------
2423 | manchester_build_area6_2423.fl | POINT(383077.83583427 398130.662707564)
2424 | manchester_build_area6_2424.fl | POINT(383067.921649128 398118.414637092)
2425 | manchester_build_area6_2425.fl | POINT(383056.288790959 398137.108632821)
...where the Openfight column is the filename and the astext column is the numerical values in x and y positions. (The axis of each building has already been offset for z values). Can you tell me how to write a script for batch importing these files to the correct positions through parsing the data in the text file?
Thanks anyones help would be appreciated.